Y
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
renata
1549 days 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 :)
link
kubanczyk
1549 days ago
Yeah, I learned it by using magit or vscode's other magit and they both default to --force-with-lease.
link
5e92cb50239222b
1550 days ago
Good point. I just copy-pasted it from the terminal, as it made sense in my particular situation. I'll remove it.
link