This is a note page for Git usage that I most likely can’t remember how to issue the commands for the tasks.
This shows how to insert one in the past:
% git checkout -b new-commit after-this-commit-in-master-branch % # doing stuff for the new commit % git commit % git rebase new-commit master
% git reset --hard
Using filter-branch, see Extracting directory or files with commits history from Git repository.
% git checkout this-branch % git reset --hard to-this-point