File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
166166* [ Show git status short] ( #show-git-status-short )
167167* [ Checkout a commit prior to a day ago] ( #checkout-a-commit-prior-to-a-day-ago )
168168* [ Push a new local branch to remote repository and track] ( #push-a-new-local-branch-to-remote-repository-and-track )
169+ * [ Change a branch base] ( #change-a-branch-base )
169170
170171<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
171172<!-- @doxie.inject end toc -->
@@ -1167,5 +1168,10 @@ git checkout master@{yesterday}
11671168git push -u origin <branch_name>
11681169```
11691170
1171+ ## Change a branch base
1172+ ```sh
1173+ git rebase --onto <new_base> <old_base>
1174+ ```
1175+
11701176<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
11711177<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 493493 }, {
494494 "title" : " Push a new local branch to remote repository and track" ,
495495 "tip" : " git push -u origin <branch_name>"
496+ }, {
497+ "title" : " Change a branch base" ,
498+ "tip" : " git rebase --onto <new_base> <old_base>"
496499}
500+
497501]
You can’t perform that action at this time.
0 commit comments