Skip to content

Instantly share code, notes, and snippets.

@janispritzkau
Last active June 15, 2023 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janispritzkau/2ceca652ced25f03e78279542d7b19a4 to your computer and use it in GitHub Desktop.
Save janispritzkau/2ceca652ced25f03e78279542d7b19a4 to your computer and use it in GitHub Desktop.
Merge unrelated histories in Git
  1. git checkout <original_branch>
  2. git merge <new_branch> --allow-unrelated-histories
  3. git checkout next . --force --no-overlay
  4. git commit --no-edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment