Advertisement
solidsnake

Git Cheat Sheet

Feb 15th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. git Cheat Sheet
  2.  
  3. 1. CLONE REPOSITORY (only once)
  4. git clone [repo_url] [dir]
  5.  
  6. 2. add changes for committing (when you're ready to commit)
  7. git add --all (will detect all changes done)
  8. git status will display all changes
  9.  
  10. 3. commit to local repository
  11. git commit -m "msg"
  12.  
  13. 4. push changes to remote
  14. git push origin master (pushing all changes that were created in local repo into the origin url)
  15.  
  16. 5. pull changes
  17. git pull origin master
  18.  
  19. typical flow of coding
  20.  
  21. to ensure repo is up to date
  22. git pull origin master
  23. pull
  24. work
  25. test
  26. add
  27. commit commit is local
  28. push push is remote
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement