Good Git resources
You know what Dr. Evil meme “We’ll as for estimates and treat them as deadlines” (https://i.stack.imgur.com/mqxMR.png)? I sometimes feel the creators of Git said in the same vein: [with Dr. Evil voice] “We’ll build a system that works 95% of the time, then give them a bunch of confusing commands and make them fix it themselves when it breaks. Mwah ha ha ha….!”
Git cheat sheet | Atlassian Git Tutorial
git – the simple guide – no deep shit!
Resolving a merge conflict using the command line – GitHub Docs
Reset to origin
git reset HEAD –hard
Create new branch (always off ‘master’)
git checkout master
git checkout -b pro-{name/number}
View changes in a file
git diff <file.ext>
Other
- Use: git branch -vv to see which branches are tracked and which are not.
https://stackoverflow.com/questions/3631706/what-is-this-branch-tracking-if-anything-in-git - git clean -dfx
Push to origin
git push origin