Skip to content

Instantly share code, notes, and snippets.

@michaelfox
Created April 9, 2013 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelfox/5349366 to your computer and use it in GitHub Desktop.
Save michaelfox/5349366 to your computer and use it in GitHub Desktop.
Initialize git in an existing project...
git init
touch .gitignore
# edit .gitignore to ignore files you don't want tracked
git add .
git commit -m 'Initial Commit'
git remote add origin <github-url>
git push origin master
git status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment