First big articles reformatting now that I properly understand hugo
This commit is contained in:
parent
5e6844592a
commit
1a4981a826
40 changed files with 184 additions and 173 deletions
|
@ -1,13 +1,14 @@
|
|||
---
|
||||
title: "Import commits from one git repo to another"
|
||||
linkTitle: "Import commits from one git repo to another"
|
||||
date: 2018-09-25
|
||||
description: >
|
||||
Import commits from one git repo to another
|
||||
description: How to take commits from one git repo and bring them into another
|
||||
tags:
|
||||
- git
|
||||
---
|
||||
|
||||
This imports commits from a repo in the `../masterfiles` folder and applies them to the repository inside the current folder :
|
||||
## 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 >}}
|
||||
(cd ../masterfiles/; git format-patch –stdout origin/master) | git am
|
||||
{{< /highlight >}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue