From b238e44ff134b915747a6f820084ccdd3c7fcd83 Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Fri, 29 Apr 2016 20:18:50 +0530 Subject: [PATCH] git show --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index d34ee90..98e8cf2 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ * [Remove entry in the global config.](https://github.com/git-tips/tips#remove-entry-in-the-global-config) * [Checkout a new branch without any history](https://github.com/git-tips/tips#checkout-a-new-branch-without-any-history) * [File diff between staging and the last file version.](https://github.com/git-tips/tips#file-diff-between-staging-and-the-last-file-version) +* [Extract file from another branch.](https://github.com/git-tips/tips#extract-file-from-another-branch) @@ -677,5 +678,10 @@ git checkout --orphan git diff --staged ``` +## Extract file from another branch. +```sh +git show : +``` + diff --git a/tips.json b/tips.json index c34b4f1..9508db3 100644 --- a/tips.json +++ b/tips.json @@ -302,4 +302,7 @@ },{ "title": "File diff between staging and the last file version.", "tip": "git diff --staged" +},{ + "title": "Extract file from another branch.", + "tip": "git show :" }]