# Rebase the current branch onto another branch
git rebase <branch>
# Rebase interactively, allowing you to squash, reword, or drop commits
git rebase -i <branch>
# Continue rebase after resolving conflicts
git rebase --continue
# Skip the current commit during a rebase
git rebase --skip
# Abort a rebase and return to the original branch state
git rebase --abort
# Switch to the feature branch
git checkout feature-branch
# Rebase the feature branch onto main
git rebase main