Skip to content

Instantly share code, notes, and snippets.

@joeywang
Created October 24, 2024 21:48
Show Gist options
  • Select an option

  • Save joeywang/9c1d9722d8ac6851d2547d12519320bc to your computer and use it in GitHub Desktop.

Select an option

Save joeywang/9c1d9722d8ac6851d2547d12519320bc to your computer and use it in GitHub Desktop.
  1. flatten the commits in main/master

  2. rebase feature branches

  3. squash into one commit

git merge --squash branch_name
git rebase -i `git merge-base --fork-point master`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment