Skip to content

Commit d8e544d

Browse files
committed
docs/lib/git: update optional params
1 parent ace1b9d commit d8e544d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/lib/git.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Rebase source branch onto target branch and forcefully push the rebased branch t
2323
**Usage**
2424

2525
```
26-
ggit-base SOURCE [TARGET] [REMOTE]
26+
ggit-base [SOURCE] [TARGET] [REMOTE]
2727
ggit-base SOURCE... TARGET REMOTE
2828
2929
Params:
30-
SOURCE Branch to be rebased
30+
SOURCE Branch to be rebased. Defaults to current branch in the first form.
3131
TARGET Rebase onto this branch. Defaults to 'main' in the first form.
3232
REMOTE Remote repository to pull and push. Defaults to 'origin' in the first form.
3333
```
@@ -79,10 +79,10 @@ Merge the source branch into the target branch (performs a fast-forward merge).
7979
**Usage**
8080

8181
```
82-
ggit-merge SOURCE [TARGET] [REMOTE]
82+
ggit-merge [SOURCE] [TARGET] [REMOTE]
8383
8484
Params:
85-
SOURCE Branch to be merged
85+
SOURCE Branch to be merged. Defaults to current branch.
8686
TARGET Branch to merge into. Defaults to 'main'.
8787
REMOTE Remote repository to pull and push. Defaults to 'origin'.
8888
```
@@ -210,10 +210,10 @@ This way you can have the same commits (and history) as remote.
210210
**Usage**
211211

212212
```
213-
ggit-update BRANCH [REMOTE]
213+
ggit-update [BRANCH] [REMOTE]
214214
215215
Params:
216-
BRANCH Branch to update
216+
BRANCH Branch to update. Defaults to current branch.
217217
REMOTE Remote repository, defaults to 'origin'.
218218
```
219219

0 commit comments

Comments
 (0)