Skip to content

Instantly share code, notes, and snippets.

@adeelibr
Created April 5, 2024 10:30
Show Gist options
  • Save adeelibr/2553433bbe083a3daa1c9c177ad3edd9 to your computer and use it in GitHub Desktop.
Save adeelibr/2553433bbe083a3daa1c9c177ad3edd9 to your computer and use it in GitHub Desktop.
rebase-guide
@comment helps massively in doing a proper rebase

git config --global rerere.enabled true

@comment be on your dev branch

git pull origin main git rebase main

@comment now fix conflicts manually only once, since git rerere will record your chosen conflict resolutions
@comment publish your changes with --force parameter

git push -f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment