Update 2017/03/24: Transferred to a separate repository here.
For personal reference:
Reset a file
Delete last commit
Delete local branch
or to force delete
Delete branch from remote repository
Search for the merge commit from a specific commit
Search for a commit message
List commits on range line of codes for one file
For example, three lines starting from line 257 of main.cpp
History of a line (or lines) in a file
For example, history of line 155 of main.cpp
Compare (diff) a file from the current branch to another branch
Or if difftool
is configured
Rebase/squash all branch commits
Combine all branch commits to one before merging to master (sort of like the one above)
Add to global .gitconfig
using git config --global alias.logp "..."
---
If you have any questions or feedback, please reach out
@flowerinthenyt.