| ▲ | ratchetclank 4 hours ago | ||||||||||||||||
I never understood why rebase is such a staple in the git world. For me "loosing" historical data, like on which branch my work was done is a real issue. In the same class, for commit to not have on which branch they were created as a metadata is a rel painpoint. It always a mess to find what commit were done for what global feature/bugfix in a global gitflow process... I'll probably be looking into adding an commit auto suffix message with the current branch in the text, but it will only work for me, not any contributors... | |||||||||||||||||
| ▲ | orwin 3 hours ago | parent | next [-] | ||||||||||||||||
Ideally you only rebase your own commit on your own feature branch, just before merging. Having a clean commit history before merging make the main branch/trunk more readable. Also (and especially) it make it way easier to revert a single feature if all the relevant commits to that feature are already grouped. For your issue about not knowing which branch the commits are from: that why I love merge commits and tree representation (I personally use 'tig', but git log also have a tree representation and GUI tools always have it too). | |||||||||||||||||
| ▲ | hhjinks 3 hours ago | parent | prev | next [-] | ||||||||||||||||
Which branch your work was done on is noise, not signal. There is absolutely zero signal lost by rebasing, and it prunes a lot of noise. If your branch somehow carries information, that information should be in your commit message. | |||||||||||||||||
| |||||||||||||||||
| ▲ | chungy 4 hours ago | parent | prev | next [-] | ||||||||||||||||
Sounds like you'd be a fan of Fossil (https://fossil-scm.org). See for instance: https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki#... | |||||||||||||||||
| |||||||||||||||||
| ▲ | codesnik 3 hours ago | parent | prev [-] | ||||||||||||||||
it's just "gitflow" is unnecessary complex (for most applications). with rebase you can work more or less as with "patches" and a single master, like many projects did in 90x, just much more comfortably and securely. | |||||||||||||||||