News for hackers. Stuff that matters.
Re:I Kind of Like Rebasing by Aeolun on Sunday June 23, 2024 @02:50AM (#40765268)
Never use git push —force. Alway use git push —force-with-lease.

Then if someone changed your remote branch, git will always let you know :)

Re:I Kind of Like Rebasing by arrowsmith on Sunday June 23, 2024 @06:32AM (#40766328)
Been using git every day for ten+ years and I never knew about --force-with-lease.

That's great to have learned, thanks!