3 ms·
This is good advice. One thing I prefer that's different from the article is squashed merges from a branch I've been working on, that makes it really easy to un
by jseifer 17y ago
This is good advice. One thing I prefer that's different from the article is squashed merges from a branch I've been working on, that makes it really easy to undo any changes. The syntax is easy, also: git merge --squash branchname
- inklesspen 17y agoDoesn't that destroy history, though?
- jrockway 17y agoSort of. It's still in the reflog. But anyway, if you are only squashing to make reverts easier, get comfortable with the reflog. You can do your operations normally and revert them with the help of "git reflog" and the usual "git reset" invocation.