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
+40-2Lines changed: 40 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ there must be a better way. and that's exactly how git-stacked-rebase came to be
17
17
18
18
a branch is just a reference to some commit (literally, it's a single-line file that contains a 40-character commit SHA -- check your `.git/refs/` folder). why not just work on your latest feature branch, rebase comfortably, and then have your tool automatically update the partial branches to make them point to the correct new commits?
19
19
20
-
from those partial branches, you can create pull requests. with this workflow, you get to comfortably iterate in a single branch; your teammates get the benefits of reviewing smaller PRs (when they're ready). win win. that's _literally_ all.
20
+
from those partial branches, you can create pull requests. with this workflow, you get to comfortably iterate in a single branch; your teammates get the benefits of reviewing smaller PRs (when they're ready). win win. that's it.
21
21
22
22
---
23
23
@@ -77,5 +77,43 @@ cd git-stacked-rebase
77
77
## Usage
78
78
79
79
```sh
80
-
git-stacked-rebase --help
80
+
$ git-stacked-rebase --help
81
+
82
+
git-stacked-rebase <branch>
83
+
84
+
0. usually <branch> should be a remote one, e.g. 'origin/master'.
85
+
1. will perform the interactive stacked rebase from HEAD to <branch>,
86
+
2. but will not apply the changes to partial branches until --apply is used.
87
+
88
+
89
+
git-stacked-rebase <branch> [-a|--apply]
90
+
91
+
1. will apply the changes to partial branches,
92
+
2. but will not push any partial branches to a remote until --push is used.
0 commit comments