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
difftool is configured
Rebase/squash all branch commits
Combine all branch commits to one before merging to master (sort of like the one above)
Custom format for log
Add to global
git config --global alias.logp "..."
If you have any questions or feedback, please reach out @flowerinthenyt.
This work is licensed under a Creative Commons Attribution 4.0 International License.