blob: ad21591d465bcf516b3a94ab437b80a243c397b6 [file] [log] [blame]
Robert R Evansa4d02422010-10-02 15:07:29 -07001#!/bin/bash
2
3function git_remote {
4 echo "Running: git remote add origin ${GIT_HOSTING}:$1.git"
5 git remote add origin $GIT_HOSTING:$1.git
6}
7
8function git_first_push {
9 echo "Running: git push origin master:refs/heads/master"
10 git push origin master:refs/heads/master
11}
12
13function git_remove_missing_files() {
14 git ls-files -d -z | xargs -0 git update-index --remove
Robert R Evans034a3b02010-10-04 12:47:25 -070015}
16
17# Adds files to git's exclude file (same as .gitignore)
18function local-ignore() {
19 echo "$1" >> .git/info/exclude
Robert R Evansc9da0862010-10-06 17:27:55 -070020}