Skip to content

Instantly share code, notes, and snippets.

@ashleygwilliams
Created October 22, 2013 17:23
Show Gist options
  • Save ashleygwilliams/7104612 to your computer and use it in GitHub Desktop.
Save ashleygwilliams/7104612 to your computer and use it in GitHub Desktop.
an introductory git workflow
1. make a project folder
2. git init inside project folder
3. create file(s)/folder(s)
- touch, mkrdir (actions)
- sublime, vim (editor)
4. add files/changes: git add <file>
5. commit files: git commit -m "<message>"
(if you get stuck in vim, :wq)
6. go to github and make a repo
7. connect the local with the remote repository
a. get URL from remote repo
b. git remote add origin <URL>
8. (optionally) pull remote files down to local
git pull origin master
9. push all commited changes to remote repo
git push (-u first-go) origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment