Useful git commands
1 min readJul 2, 2018
I often use commands below
$ git status -s$ git commit$ git diff$ git log --oneline
Get Toni Dezman’s stories in your inbox
Join Medium for free to get updates from this writer.
And to save some keystrokes I added these commands to aliases in my .zshrc file. If you use Bash you can add them to your .bashrc file.
Press enter or click to view image in full size![]()
One cool git command I use regularly is
$ git add --patch
# or
$ git add -pWhich enables you to add specific code to staging.
One command line tool I enjoy using is “tig” for inspecting commits.




