File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
141
141
* [ Alias: git undo] ( #alias-git-undo )
142
142
* [ Add object notes] ( #add-object-notes )
143
143
* [ Show all the git-notes] ( #show-all-the-git-notes )
144
+ * [ Apply commit from another repository] ( #apply-commit-from-another-repository )
144
145
145
146
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
146
147
<!-- @doxie.inject end toc -->
@@ -954,5 +955,10 @@ git notes add -m 'Note on the previous commit....'
954
955
git log --show-notes=' *'
955
956
```
956
957
958
+ ## Apply commit from another repository
959
+ ``` sh
960
+ git --git-dir=< source-dir> /.git format-patch -k -1 --stdout < SHA1> | git am -3 -k
961
+ ```
962
+
957
963
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
958
964
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 411
411
}, {
412
412
"title" : " Show all the git-notes" ,
413
413
"tip" : " git log --show-notes='*'"
414
+ }, {
415
+ "title" : " Apply commit from another repository" ,
416
+ "tip" : " git --git-dir=<source-dir>/.git format-patch -k -1 --stdout <SHA1> | git am -3 -k"
414
417
}]
You can’t perform that action at this time.
0 commit comments