diff --git a/Commands.md b/Commands.md index e05b7d7..36100bb 100644 --- a/Commands.md +++ b/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`: