Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
TimWolla
· 4y ago · 0 comments
-f does not sound like a good idea to me in a script like that.
Comments
[–]
renata
4y ago
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 :)
[–]
kubanczyk
4y ago
Yeah, I learned it by using magit or vscode's other magit and they both default to --force-with-lease.
[–]
5e92cb50239222b
4y ago
Good point. I just copy-pasted it from the terminal, as it made sense in my particular situation. I'll remove it.