Created
October 22, 2013 17:23
-
-
Save ashleygwilliams/7104612 to your computer and use it in GitHub Desktop.
an introductory git workflow
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
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