maelle / simplymaelle

Source of my website :fish:
https://masalmon.eu
19 stars 12 forks source link

Hack your way to a good Git history · Maëlle's R Blog #81

Open utterances-bot opened 5 months ago

utterances-bot commented 5 months ago

Hack your way to a good Git history · Maëlle's R Blog

https://masalmon.eu/2024/06/11/rewrite-git-history/

kent37 commented 5 months ago

Sublime Merge (https://www.sublimemerge.com/) is a GUI tool that makes many of these operations very easy - squashing and re-ordering commits, amending, editing commit comments, etc. No need to remember the git commands. It also includes a good diff viewer.

joelnitta commented 4 months ago

Great tips! One more: before starting to edit the branch history, I like to make a copy: git checkout -b feat-backup. That way, if I mess something up, I still have a copy from before I started editing.

maelle commented 4 months ago

this is a nice one @joelnitta!!