📁 Git - Add Content to a Past Commit
Updated at 2018-05-18 13:23
If you are working on the
# find the commit you want to edit
# take the commit id of the ONE STEP OLDER COMMIT
git rebase -i COMMIT_ID
If you are in a separate branch.
git rebase -i master
# find the commit you want to edit and change it to `edit`. `:wq`
# do your changes and then repeate the following until resolved.
git add .
git rebase --continue