Find a well known {commit}
via:
git reflog
Revert {branch}
to well-known state ({commit}
):
git checkout {branch}
git reset --hard {commit}
Checkout detached commit for inspection / experients
git checkout {commit}
Apply some commit (without history (!!)) on current branch:
git cherry-pick {commit-range}
Create a new branch from something experimental:
git checkout -b {new-branch-name}
git push origin {new-branch-name} --set-upstream
Quickly switch context
git stash
git stash pop
git stash list
git rebase master
... cannot be applied ...
Fix and resolve conflicts in local working copy and continue:
git add {conflicting file(s)}
git rebase --continue
Clean up uncommited changes
git clean -xdf