Skip to content

Instantly share code, notes, and snippets.

@mrcaron
Created October 22, 2009 20:12
Show Gist options
  • Save mrcaron/216257 to your computer and use it in GitHub Desktop.
Save mrcaron/216257 to your computer and use it in GitHub Desktop.
Git project init script
#!/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