Created
October 22, 2009 20:12
-
-
Save mrcaron/216257 to your computer and use it in GitHub Desktop.
Git project init script
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
#!/bin/bash | |
# input repository name, using '-' for any spaces ($1) | |
# input GH username $2 | |
mkdir ${1} | |
cd ${1} | |
git init | |
touch README | |
git add README | |
git commit -m 'first commit' | |
git remote add origin git@github.com:${2}/${1}.git | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment