7

GitHub - no-gravity/git-retroamend: A script to amend changes to an old git comm...

 2 years ago
source link: https://github.com/no-gravity/git-retroamend
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

If you are in love with a clean git history, you probably sometimes wish to apply your current changes to an old commit.

Every time I do that, I dabble with interactive git rebase, hoping I remember gits internals well enough to not mess up my repo.

To make things easier, I wrote a script for it.

Type this and the current changes are made part of the commit with the given hash:

git-retroamend.sh <hash_of_an_old_commit>


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK