From e131dce6bb8883febfc5bc6eed13b8e184b6a0ad Mon Sep 17 00:00:00 2001 From: ImmortalPC Date: Tue, 7 Jan 2014 11:33:36 +0100 Subject: [PATCH] [Git:change] Add a command to show a file as it appeared at . --- cheatsheets/git | 1 + 1 file changed, 1 insertion(+) diff --git a/cheatsheets/git b/cheatsheets/git index 22b538c..63302bf 100644 --- a/cheatsheets/git +++ b/cheatsheets/git @@ -38,6 +38,7 @@ git checkout master # Checkout local master git checkout -b new_branch # Create and checkout a new branch git merge upstream/master # Merge remote into local repo git show 83fb499 # Show what a commit did. +git show 83fb499:path/fo/file.ext # Shows the file as it appeared at 83fb499. git diff branch_1 branch_2 # Check difference between branches git log # Show all the commits git status # Show the changes from last commit