mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Update docs for new behavior
`git create branch` `git feature|bug|chore|refactor`
This commit is contained in:
parent
c064956f85
commit
ab6c51bb8f
23
Commands.md
23
Commands.md
|
|
@ -100,6 +100,13 @@ Create/Merge the given feature, refactor, bug or chore branch `name`:
|
|||
$ git feature dependencies
|
||||
```
|
||||
|
||||
To Setup a remote tracking branch:
|
||||
|
||||
```bash
|
||||
$ git feature dependencies -r upstream
|
||||
```
|
||||
_Note_: If no remote name is passed with the `-r` option, it will push to _origin_.
|
||||
|
||||
Afterwards, the same command will check it out:
|
||||
|
||||
```bash
|
||||
|
|
@ -114,6 +121,8 @@ $ git checkout master
|
|||
$ git feature finish dependencies
|
||||
```
|
||||
|
||||
_Note_: If a remote is setup to track the branch, it will be deleted.
|
||||
|
||||
All of this works with `feature`, `bug`, `chore` or `refactor`.
|
||||
|
||||
## git contrib
|
||||
|
|
@ -708,12 +717,24 @@ $ git info --no-config
|
|||
|
||||
## git create-branch
|
||||
|
||||
Create local and remote branch `name`:
|
||||
Create local branch `name`:
|
||||
|
||||
```bash
|
||||
$ git create-branch development
|
||||
```
|
||||
|
||||
Create local branch `name` and setup a remote tracking branch in `origin`:
|
||||
|
||||
```bash
|
||||
$ git create-branch -r development
|
||||
```
|
||||
|
||||
Create local branch `name` and setup a remote tracking branch in `upstream`:
|
||||
|
||||
```bash
|
||||
$ git create-branch -r upstream development
|
||||
```
|
||||
|
||||
## git delete-branch
|
||||
|
||||
Delete local and remote branch `name`:
|
||||
|
|
|
|||
Loading…
Reference in a new issue