Git tips from stackoverflow
Here are some pretty cool and very useful git tricks I learnt by searching or reading stackoverflow. Most of them are operations that should be pretty easy to do, and seem pointlessly complicated. The second one is an excellent example of both the flexibility and the lack of user friendliness of the git UI
Prevent a file from being commited, ever
Git: Never Commit Changed Files (But still keep original revisioned.)
To make it commitable again run
Commits no yet pushed
If you want to see all commits on all branches that aren’t pushed yet, you might be looking for something like this:
And if you only want to see the most recent commit on each branch, and the branch names, this: