From c42ade5ba4f8b40d12b6a9846311d507ff475691 Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Sun, 2 Oct 2016 03:22:29 +0000 Subject: [PATCH] fetch ref --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 08fea5b..4443396 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Add object notes](#add-object-notes) * [Show all the git-notes](#show-all-the-git-notes) * [Apply commit from another repository](#apply-commit-from-another-repository) +* [Specific fetch reference](#specific-fetch-reference) @@ -960,5 +961,10 @@ git log --show-notes='*' git --git-dir=/.git format-patch -k -1 --stdout | git am -3 -k ``` +## Specific fetch reference +```sh +git fetch origin master:refs/remotes/origin/mymaster +``` + diff --git a/tips.json b/tips.json index 89e877a..dca6643 100644 --- a/tips.json +++ b/tips.json @@ -414,4 +414,7 @@ }, { "title": "Apply commit from another repository", "tip": "git --git-dir=/.git format-patch -k -1 --stdout | git am -3 -k" +},{ + "title": "Specific fetch reference", + "tip": "git fetch origin master:refs/remotes/origin/mymaster" }]