Hacker News new | ask | show | jobs
by TimWolla 1550 days ago
-f does not sound like a good idea to me in a script like that.
2 comments

Also pretty much every usage of -f would be better off being --force-with-lease so you're less likely to accidentally clobber someone else's work. I have git fpush aliased to "push --force-with-lease" and try to spread the gospel when possible :)
Yeah, I learned it by using magit or vscode's other magit and they both default to --force-with-lease.
Good point. I just copy-pasted it from the terminal, as it made sense in my particular situation. I'll remove it.