mirror of https://github.com/namibia/tips.git
Merge pull request #160 from lmarvaud/patch-1
Add change a branch base tips
This commit is contained in:
commit
b773c7ab67
|
@ -166,6 +166,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
|||
* [Show git status short](#show-git-status-short)
|
||||
* [Checkout a commit prior to a day ago](#checkout-a-commit-prior-to-a-day-ago)
|
||||
* [Push a new local branch to remote repository and track](#push-a-new-local-branch-to-remote-repository-and-track)
|
||||
* [Change a branch base](#change-a-branch-base)
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
|
@ -1167,5 +1168,10 @@ git checkout master@{yesterday}
|
|||
git push -u origin <branch_name>
|
||||
```
|
||||
|
||||
## Change a branch base
|
||||
```sh
|
||||
git rebase --onto <new_base> <old_base>
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
|
Loading…
Reference in New Issue