Skip to content

Commit c42ade5

Browse files
committed
fetch ref
1 parent 59de6a8 commit c42ade5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
142142
* [Add object notes](#add-object-notes)
143143
* [Show all the git-notes](#show-all-the-git-notes)
144144
* [Apply commit from another repository](#apply-commit-from-another-repository)
145+
* [Specific fetch reference](#specific-fetch-reference)
145146

146147
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
147148
<!-- @doxie.inject end toc -->
@@ -960,5 +961,10 @@ git log --show-notes='*'
960961
git --git-dir=<source-dir>/.git format-patch -k -1 --stdout <SHA1> | git am -3 -k
961962
```
962963

964+
## Specific fetch reference
965+
```sh
966+
git fetch origin master:refs/remotes/origin/mymaster
967+
```
968+
963969
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
964970
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,4 +414,7 @@
414414
}, {
415415
"title": "Apply commit from another repository",
416416
"tip": "git --git-dir=<source-dir>/.git format-patch -k -1 --stdout <SHA1> | git am -3 -k"
417+
},{
418+
"title": "Specific fetch reference",
419+
"tip": "git fetch origin master:refs/remotes/origin/mymaster"
417420
}]

0 commit comments

Comments
 (0)