News for hackers. Stuff that matters.
Re:Launch HN: Diversion (YC S22) – Cloud-Native Git Alternative by billpg on Monday January 22, 2024 @10:39AM (#39090591)
I configured my github to only allow commits with an anonymised email address. Time passed and I used another machine on which I had already opened that repo before. I pulled my recent work successfully, wrote stuff and then committed and pushed.

Github rejected my commit as I had the wrong email address. I then had to try and work out how I delete a commit but keep all my changes so I could commit it all again but with the correct email address.

I'm not sure exactly what I did but in my ham-fisted experimentation I deleted the commit and restored my local copy back to the way it was before my commit, losing all my work that day.

Re:Launch HN: Diversion (YC S22) – Cloud-Native Git Alternative by BossingAround on Monday January 22, 2024 @10:47AM (#39090691)
If you had already committed, `git reflog` should have still found your changes (even after you deleted the commit and restored the local working tree) unless you deleted and re-cloned the repository.
Re:Launch HN: Diversion (YC S22) – Cloud-Native Git Alternative by fesc on Monday January 22, 2024 @12:27PM (#39092299)
Honestly I don’t understand why not more people use a GUI for git.

What you describe would be 1 Minute of work and maybe 10 clicks with a very low probability of shooting yourself in the foot in Tower.