aboutsummaryrefslogtreecommitdiff
path: root/content/blog/commands/git-import-commits.md
blob: 5ec2bc1e171aee72f7f2fc5d88e088b8118b1347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
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
---

This 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 >}}