diff --git a/git.md b/git.md index c36ea2d..6de2073 100755 --- a/git.md +++ b/git.md @@ -8,7 +8,7 @@ tags: [ linux, programming, git ] # Fix detached head -From https://stackoverflow.com/a/10229202 : +From : ## To Delete Changes @@ -24,3 +24,19 @@ git checkout main git pull . temp git branch -D temp ``` + +# Retroactively Sign Commits + +From : + +1. + ``` + git rebase -i HEAD~ + ``` + +2. Replace `pick` with `reword`: + + In vim: `:%s/^pick/reword/:wq` + +3. Save all commit messages +4. Force push to remote