You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,19 @@ To update your local branch with the latest changes in the remote branch (e.g. `
83
83
git stack rebase
84
84
```
85
85
86
+
### Customizing branch name
87
+
88
+
By default `git stack` generates a unique branch name such as `gs-3cmrMBSUj`.
89
+
90
+
You can specify a prefix for the generated branch name by using either the environment variable or the command line option.
91
+
In the example below branches would be generated such as `dev/magus/gs-3cmrMBSUj`.
92
+
93
+
```bash
94
+
GIT_STACK_BRANCH_PREFIX="dev/magus/" git stack
95
+
96
+
git stack --branch-prefix="dev/magus/"
97
+
```
98
+
86
99
## Why?
87
100
88
101
The goal of `git stack` is to combine the **simplicity of developing in a single branch** in order to **preserve your commit history** while also **grouping commits into pull requests for code review**.
0 commit comments