Skip to content

Commit 6159dde

Browse files
camelidJoshua Nelson
authored and
Joshua Nelson
committed
Fix instructions for squashing
`git merge-base master` does not work, you need `git merge-base master HEAD` instead.
1 parent fdd5946 commit 6159dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Alternatively, you can sacrifice the commit history like this:
160160

161161
```
162162
# squash all the changes into one commit so you only have to worry about conflicts once
163-
git rebase -i $(git merge-base master) # and squash all changes along the way
163+
git rebase -i $(git merge-base master HEAD) # and squash all changes along the way
164164
git rebase master
165165
# fix all merge conflicts
166166
git rebase --continue

0 commit comments

Comments
 (0)