Added two funky git cheats!

This commit is contained in:
Shadab Zafar 2015-05-20 00:27:14 +05:30
parent 434802341e
commit 889c8ef8fe
1 changed files with 6 additions and 0 deletions

View File

@ -51,3 +51,9 @@ git show 83fb499:path/fo/file.ext # Shows the file as it a
git diff branch_1 branch_2 # Check difference between branches
git log # Show all the commits
git status # Show the changes from last commit
# Commit history of a set of files
git log --pretty=email --patch-with-stat --reverse --full-index -- Admin\*.py > Sripts.patch
# Import commits from another repo
git --git-dir=../some_other_repo/.git format-patch -k -1 --stdout <commit SHA> | git am -3 -k