Questions tagged [.git-info-grafts]

`.git/info/grafts` lets you preserve git history between different repositories by enabling two otherwise different lines of development to be joined together.

.git-info-grafts
Filter by
Sorted by
Tagged with
0 votes
1 answer
312 views

How do I combine Git repositories?

I am trying to combine 2 repositories into 1, by grafting the history. I would assume this is the easiest way to obtain a clean linear history. I tried do so by adding the other as a remote to an ...
Flavius's user avatar
  • 111
2 votes
1 answer
343 views

Changing the commit message while grafting a large number of changesets using Mercurial

I need to graft a large number (thousands) of small changesets from branch A to branch B - but need to alter the commit message in the process. The message change needs to look roughly like this: "...
Edward Brown's user avatar
0 votes
1 answer
206 views

Introduce merges in grafted Git history

I'm currently importing an SVN repository into Git. The structure of the SVN repository is a bit messy so I'm having to convert it into three separate Git repositories and then merge them all ...
jkeirstead's user avatar
  • 2,921
1 vote
3 answers
360 views

Cloning a GIT branch to another repositories GIT branch?

I have two GIT repositories, one for work and one for independent development. My company expressed interest in a project I've been working on and would like me to migrate that branch (master) into a ...
ehime's user avatar
  • 8,175
1 vote
1 answer
91 views

echo into grafts does not work

I have a big repository with more than 300,000 commits. I wanna work just with recent commits. So, I used the following command: echo "" > .git/info/grafts But it does not work, since after that I ...
Parastou Tourani's user avatar
0 votes
1 answer
202 views

Can git grafts be used after a division of a big repo?

Take the case when a big chunk of some parent repository is taken as a mostly starting point for another child repository, deleted from the original, and made a submodule instead. (All of this has ...
cnst's user avatar
  • 26.5k