Created
January 20, 2010 19:36
-
-
Save avar/282151 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export FRAGMENT=$(perl -E 'say(map { chomp; $_ } (split m[/], qx[pwd])[-1])') | |
[ ! -z "$FRAGMENT" ] && git clone --bare . /tmp/$FRAGMENT | |
[ ! -z "$FRAGMENT" ] && rsync -av --progress /tmp/$FRAGMENT nix.is:/var/cache/git/avar/ | |
[ ! -z "$FRAGMENT" ] && git remote add origin ssh://nix.is/var/cache/git/avar/$FRAGMENT | |
[ ! -z "$FRAGMENT" ] && git config branch.master.remote 'origin' | |
[ ! -z "$FRAGMENT" ] && git config branch.merge 'refs/heads/master' | |
[ ! -z "$FRAGMENT" ] && git config branch.master.merge 'refs/heads/master' | |
git pull |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment