blob: 50f44596f3e56f1253555d65cdc2f2173299385b [file] [log] [blame]
Robert R Evans76ed68d2010-10-02 12:29:17 -07001#!/bin/bash
2
Robert R Evans9c7cd9a2010-10-02 11:55:34 -07003function 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
15}