Let's explore the basics of using git alone and with a pair. Fork the Project
- Find on github (ie, https://github.com/hackreactor/2019-10-git-workflow-overview)
- Fork repo, Copy your URL (ie, https://github.com/gurlock/2019-10-git-workflow-overview)
- For pair, partner also forks to his git. Clone onto local workstation
- git clone https://github.com/gurlock/2019-10-git-workflow-overview
- For pair, git remote add nickname https://github.com/tiff/2019-10-git-workflow-overview Revisions
- Check if you're on correct repo - cd, ls
- Check if you're on master by running git status ing
- Commands:
- Git status - right files have change
- Git diff - review code, verify happy with changes
- Git add - the files you want to commit
- Git status - verify only the files you wanted were added
- Git commit - commit your changes to commit history
- Don’t use -a or -m
- Git status - verify commit went as expected
- Git push origin master - sends your changes back up to forked repo on your Github account.
Saving
- git add .
- git commit -m 'Succinct comment'
- git push origin master
- git push nickname master
- Def Pull request -
- Def Fork -
- Terminal Commands - cd, ls, mv, cp, and rm