3 ms·
> The feature branch's commit history is preserved in the repository (thought not in the master branch) This would require you not to get rid of the branches (
by reledi 13y ago
> The feature branch's commit history is preserved in the repository (thought not in the master branch)
This would require you not to get rid of the branches (remotely and locally), right? GitHub does allow you to undo the deletion of a branch, but is that only for a certain time period?
I like to delete my branches as soon as they've been merged in.
- Frostbeard 13y agoWe leave the feature branch on the remote repo indefinitely, but we really don't need to do so. The diff between the feature branch's squashed commit and the previous commit of the project usually tells us everything we need to know when a problem crops up. We keep the feature branches "just in case", but in practice they're never used once the branch has been merged into production.