diff options
Diffstat (limited to '')
-rw-r--r-- | content/blog/commands/git-import-commits.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/blog/commands/git-import-commits.md b/content/blog/commands/git-import-commits.md index 0286282..bb92b26 100644 --- a/content/blog/commands/git-import-commits.md +++ b/content/blog/commands/git-import-commits.md @@ -9,6 +9,6 @@ tags: ## The trick In an ideal world there should never be a need to do this, but here is how to do it properly if you ever walk into this bizarre problem. This command imports commits from a repo in the `../masterfiles` folder and applies them to the repository inside the current folder : -{{< highlight sh >}} +```sh (cd ../masterfiles/; git format-patch –stdout origin/master) | git am -{{< /highlight >}} +``` |