Created
October 21, 2009 20:35
-
-
Save andrewsardone/215435 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
#!/usr/bin/env bash | |
[[ -n "$1" ]] || { echo "Usage: $0 project_name"; exit 0 ; } | |
mkdir -m 770 $1.git | |
cd $1.git | |
git --bare init --shared=group |
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
pushd /Volumes/JungleDisk/Git | |
makeGitRepo project |
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
pushd ~/code/project | |
git remote add jungledisk /Volumes/JungleDisk/Git/project.git | |
git push --all jungledisk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment