Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git Cheat Sheet
- 1. CLONE REPOSITORY (only once)
- git clone [repo_url] [dir]
- 2. add changes for committing (when you're ready to commit)
- git add --all (will detect all changes done)
- git status will display all changes
- 3. commit to local repository
- git commit -m "msg"
- 4. push changes to remote
- git push origin master (pushing all changes that were created in local repo into the origin url)
- 5. pull changes
- git pull origin master
- typical flow of coding
- to ensure repo is up to date
- git pull origin master
- pull
- work
- test
- add
- commit commit is local
- push push is remote
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement