Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reparent whole branch? #4

Open
galeksandrp opened this issue Jun 23, 2017 · 1 comment
Open

How to reparent whole branch? #4

galeksandrp opened this issue Jun 23, 2017 · 1 comment

Comments

@galeksandrp
Copy link
Contributor

galeksandrp commented Jun 23, 2017

There are git-reparent-branch from depot_tools exist, but it can't reparent branches with entirely different history.

Now I'm using something

echo origin/board3_4_5_nru_ipbzona > /tmp/parent && git rev-list --reverse origin/ok-v2-ipb-c | xargs -n1 -i bash -c 'git checkout {} && echo $(git-reparent -p $(cat /tmp/parent) --no-reset --no-reset-committer) > /tmp/parent'
@MarkLodato
Copy link
Owner

Please see "Reparenting an inner commit" in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants