public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* Question: is there a possibility of getting a warning before a git push -f
@ 2025-06-09 16:46 Aditya Garg
  2025-06-09 18:42 ` Junio C Hamano
  2025-06-11 23:18 ` D. Ben Knoble
  0 siblings, 2 replies; 5+ messages in thread
From: Aditya Garg @ 2025-06-09 16:46 UTC (permalink / raw)
  To: git

One thing I sometimes encounter is that I sometimes git push -f and moments later I realise I did it at the wrong time, result being a disaster. I was wondering if a little [y/N] warning could be possible before the risky command gets executed. I saw the code for push superficially and I don't think it's implemented. I think it would be a nice feature though.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-12 11:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-09 16:46 Question: is there a possibility of getting a warning before a git push -f Aditya Garg
2025-06-09 18:42 ` Junio C Hamano
2025-06-09 18:44   ` Aditya Garg
2025-06-11 23:18 ` D. Ben Knoble
2025-06-12 11:49   ` Aditya Garg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox