Git tips
git show Show the file changes for a commit : git show --stat $commit_num git log show logs between two tags: git log kernel-3.10.0-54.el7..kernel-3.10.0-59.el7 git diff Show git diff even after git add : git diff --staged git diff > some.patch or git diff master > some.patch git add Use git add -p to split a file git commit edit the last commit : git commit --amend commit seperate line for a file git add –patch git commit git blame show the commit by each line