Robert R Evans | 76ed68d | 2010-10-02 12:29:17 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
Robert R Evans | 9c7cd9a | 2010-10-02 11:55:34 -0700 | [diff] [blame] | 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 | } |