While it’s great to have Git status shown in your bash prompt, it’s not your only option. Z Shell (zsh) is another popular command-line interface used by many programmers
ZSH git status
Bend logs to your will
The git log command is incredibly powerful, offering a multitude of options to help you understand what work has been done in your repositories and who has done it.
Piecemeal staging
This article is a follow-up to the comments from yesterday’s discussion about interactive adding. Many readers were eager to learn more about the powerful git add -p command, which is a shortcut to the patch mode
Restoring lost commits
So, you just executed git reset –hard HEAD^ and discarded your last commit. But now you realize you really needed those changes.