Source: https://www.atlassian.com/de/git/tutorials/merging-vs-rebasing
git checkout feature
git checkout -b temporary-branch
git rebase -i main
# [Clean up the history]
git checkout main
git merge temporary-branch
Source: https://www.atlassian.com/de/git/tutorials/merging-vs-rebasing
git checkout feature
git checkout -b temporary-branch
git rebase -i main
# [Clean up the history]
git checkout main
git merge temporary-branch