390
FFmpeg moves to Forgejo (code.ffmpeg.org)
submitted 6 days ago by clot27@lemmy.zip to c/opensource@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] psycotica0@lemmy.ca 3 points 4 days ago

And now I'm running out of time, but there's one more thing I want to talk about, which is my best friend git reflog.

git reflog is just a log of all the commit hashes you've ever been at, and why it changed. Using this you can recover from almost anything you do within git. Bad rebase? That's okay, branches are just pointers to commit hashes, and the old commits hashes are still there, same as they ever were. And the reflog remembers what those hashes were. Accidentally reset your branch to a bad place? Git reflog knows how to find your way home. Deleted a branch that still had a change on it you forgot to merge? The name may be gone, but the hash isn't. Reflog knows its old address, and you can just point a new name there, or inspect its log by hash, or cherry-pick it.

Git reflog loves you.

And now I have to go, but maybe I'll say more later.

this post was submitted on 17 Aug 2025
390 points (100.0% liked)

Open Source

40056 readers
100 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 6 years ago
MODERATORS