💾 Archived View for freeshell.de › tldr › git-rebase.gmi captured on 2022-04-28 at 18:39:47. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

git rebase

Reapply commits from one branch on top of another branch.
Commonly used to "move" an entire branch to another base, creating copies of the commits in the new location.

More information.

git rebase {new_base_branch}
git rebase -i {target_base_branch_or_commit_hash}
git rebase --continue
git rebase --skip
git rebase --abort
git rebase --onto {new_base} {old_base}
git rebase -i {HEAD~5}
git rebase -X theirs {branch_name}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY