This is just a quick guide to get you out of GIT Hell. I tend to forget these commands so I wanted a place to document the GIT foo.
Create a Merge Request via CLI
Note: if you are running GIT 2.10 - 2.17 use --push-option
instead of -o
Reset back to a commit
Fix a Commit message
Add a change to a current Commit
Move a commit to a new Branch
I do this all the time. I commit to master and not a branch
Move a commit to an existing Branch
Undo a specific commit
Undo changes to a single fike
GIT Diff staged changes