Robert R Evans | a4d0242 | 2010-10-02 15:07:29 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | function git_remote { | ||||
4 | echo "Running: git remote add origin ${GIT_HOSTING}:$1.git" | ||||
5 | git remote add origin $GIT_HOSTING:$1.git | ||||
6 | } | ||||
7 | |||||
8 | function git_first_push { | ||||
9 | echo "Running: git push origin master:refs/heads/master" | ||||
10 | git push origin master:refs/heads/master | ||||
11 | } | ||||
12 | |||||
13 | function git_remove_missing_files() { | ||||
14 | git ls-files -d -z | xargs -0 git update-index --remove | ||||
15 | } |