From 889c8ef8fe839845aa20eef4d693dc20ebabc6b7 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Wed, 20 May 2015 00:27:14 +0530 Subject: [PATCH] Added two funky git cheats! --- cheat/cheatsheets/git | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cheat/cheatsheets/git b/cheat/cheatsheets/git index a31f4de..c52df05 100644 --- a/cheat/cheatsheets/git +++ b/cheat/cheatsheets/git @@ -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 | git am -3 -k