Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. # Beginners Guide to Git
  2. ## Intro to Git
  3.  
  4. **Git** functions as a *Version Control System*. Meaning it allows you to control each version of your project as you develop it.
  5. **Git** allows you to:
  6. * Collaborate on your project with other people
  7. * Keep track of changes that are made
  8. * Refer to previous versions of your project
  9. * Create separate branches of your project
  10.  
  11. ## Controls in Git
  12.  
  13. 1. `git init` (prepare for tracking)
  14. 2. `git add` (start tracking file)
  15. 3. `git commit` (save)
  16. 4. `git status` (get the status of what git is tracking)
  17. 5. `git diff` (see what changes have happened since last commit)
  18.  
  19. Example of `git status`:
  20. Jonathans-Mac:mod0resources jonpatterson$ git status
  21. On branch master
  22. Your branch is up to date with 'origin/master'.
  23.  
  24. nothing to commit, working tree clean
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement