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
Your branch is up to date with 'origin/your-contribution'.
169
169
```
170
-
171
-
2. Start an interactive rebase using a specific commit hash, or count backwards from your last commit using `HEAD~<n>`, where `<n>` represents the number of commits to include in the rebase.
170
+
171
+
2. Start an interactive rebase using a specific commit hash, or count backwards from your last commit using `HEAD~<n>`, where `<n>` represents the number of commits to include in the rebase.
# e, edit <commit> = use commit, but stop for amending
190
190
# s, squash <commit> = use commit, but meld into previous commit
191
191
# f, fixup <commit> = like "squash", but discard this commit's log message
192
-
192
+
193
193
...
194
-
194
+
195
195
```
196
196
197
-
3. Use a command line text editor to change the word `pick` to `fixup` for the commits you want to squash, then save your changes and continue the rebase:
197
+
3. Use a command line text editor to change the word `pick` to `fixup` for the commits you want to squash, then save your changes and continue the rebase:
198
198
199
199
```
200
200
pick 2ebe926 Original commit
201
201
squash 31f33e9 Address feedback
202
202
pick b0315fe Second unit of work
203
-
203
+
204
204
...
205
-
205
+
206
206
```
207
-
208
-
Output (after saving changes) is similar to:
209
-
207
+
208
+
Output (after saving changes) is similar to:
209
+
210
210
```
211
211
[detached HEAD 61fdded] Second unit of work
212
212
Date: Thu Mar 5 19:01:32 2020 +0100
213
213
2 files changed, 15 insertions(+), 1 deletion(-)
214
-
214
+
215
215
...
216
-
216
+
217
217
Successfully rebased and updated refs/heads/master.
218
218
```
219
219
4. Force push your changes to your remote branch:
@@ -228,7 +228,7 @@ masse. This makes reviews easier.
228
228
229
229
### Merging a commit
230
230
231
-
Once you've received review and approval, your commits are squashed, your PR is ready for merging.
231
+
Once you've received review and approval, your commits are squashed, your PR is ready for merging.
232
232
233
233
Merging happens automatically after both a Reviewer and Approver have approved the PR. If you haven't squashed your commits, they may ask you to do so before approving a PR.
0 commit comments