branch - Flatten old GIT branches to master -
i have git project master branch , couple of other branches. of these additional branches contain 1 commit:
-- -- b -- c / / / -- -- b -- c -- d -- e -- f -- g i'd flatten git repository contain master branch preserved information of other branches this:
-- -- b -- -- c -- d -- b -- e -- c -- f -- g how can done?
you cherry-pick (possibly for-each-rev iirc)
if know there aren't going (new) conflicts:
git cherry-pick $(git for-each-ref -- --glob refs/heads | cut -d\ -f1) or
git for-each-ref --shell --format="git cherry-pick %(refname)" refs/heads |sh
Comments
Post a Comment