1
0
mirror of https://github.com/k88hudson/git-flight-rules.git synced 2025-06-17 05:21:35 -03:00

Add information about filter-branch back

This commit is contained in:
lumynou5
2024-05-21 11:05:33 +08:00
parent 819b14a73f
commit 449e36d21b

View File

@ -336,6 +336,9 @@ $ git -c rebase.instructionFormat='%s%nexec GIT_COMMITTER_DATE="%cD" GIT_AUTHOR_
``` ```
`<commit>` is a commit before all your bad commits. If you need to change all of history in the current branch including the root of the branch, put `--root` there instead. `<commit>` is a commit before all your bad commits. If you need to change all of history in the current branch including the root of the branch, put `--root` there instead.
If you need to change all of history, see the man page for `git filter-branch`.
Note this will change the history and a force push is required. Note this will change the history and a force push is required.
### I want to remove a file from the previous commit ### I want to remove a file from the previous commit