Skip to content

Commit 3fa7295

Browse files
HonkingGooseben
andauthored
Add second method to delete a commit
Co-authored-by: Ben Straub <[email protected]>
1 parent 2929e7c commit 3fa7295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/07-git-tools/sections/rewriting-history.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Despite this commit being shown in the script, because it was marked as ``pick''
302302
==== Deleting a commit
303303

304304
If you want to get rid of a commit, you can delete it using the `rebase -i` script.
305-
In the list of commits, put the word ``drop'' before the commit you want to delete:
305+
In the list of commits, put the word ``drop'' before the commit you want to delete (or just delete that line from the rebase script):
306306

307307
[source,console]
308308
----

0 commit comments

Comments
 (0)