4 ms·
The most widely useful method to manage changes in repos is: 1. Open a new branch and do development there. You can rebase and force-push all you want. 2.
by 0xbadcafebee 3y ago
The most widely useful method to manage changes in repos is:
1. Open a new branch and do development there. You can rebase and force-push all you want.
2. When ready for review, open a PR of the branch, and never rebase again.
3. On approval, Squash-Merge your PRs and include a merge comment linking to the PR.
This way you can "clean up" your development history in your branch, maintain history of changes requested in a PR, the entire development history is available at the PR link later, and you can revert an entire PR by reverting a single commit.