Re:The largest Git repo
by cormacrelf on Thursday May 25, 2017 @01:09AM
(#14415401)
There's nothing stopping you from doing merges instead of rebases.
Then, when you're done with feature, if you really care about clean history, just rebase the entire history of the feature branch into one or more commits based on the latest from master. I think checkout -b newbranch; rebase --squash master does the trick here:
Then checkout master, rebase newbranch, test it out and if you're all good, delete or ignore the original.
[ Parent
| on HN ]
*latest feature c
*merge
/|
* |more master comm.
| feature commit #:
| merge
|/|
* |master commits y
| feature commit #
|/
original master
* master history ..
Re:The largest Git repo
by cormacrelf on Wednesday May 31, 2017 @08:54PM
(#14457120)
maybe try that again keeping 4 spaces before each line?