File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-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)`.
166
166
* [ Show git status short] ( #show-git-status-short )
167
167
* [ Checkout a commit prior to a day ago] ( #checkout-a-commit-prior-to-a-day-ago )
168
168
* [ 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 )
169
170
170
171
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
171
172
<!-- @doxie.inject end toc -->
@@ -1167,5 +1168,10 @@ git checkout master@{yesterday}
1167
1168
git push -u origin <branch_name>
1168
1169
```
1169
1170
1171
+ ## Change a branch base
1172
+ ```sh
1173
+ git rebase --onto <new_base> <old_base>
1174
+ ```
1175
+
1170
1176
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
1171
1177
<!-- @doxie.inject end -->
You can’t perform that action at this time.
0 commit comments