git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Feature request] Add -u option to git rm to delete untracked files
@ 2020-05-26 21:21 Erik Janssen
  2020-05-27  7:34 ` Jeff King
  2020-05-27 12:44 ` Đoàn Trần Công Danh
  0 siblings, 2 replies; 5+ messages in thread
From: Erik Janssen @ 2020-05-26 21:21 UTC (permalink / raw)
  To: git

Hello All,


Would it be feasible to add a -u option to git rm to specify that I also want a file deleted if it is not tracked by git?
Currently, git rm -f can remove files in whatever state it seems, except when it is untracked. 
By allowing a -u option (-u: also delete untracked files) I would be sure that the file is gone while it would also make sure that it doesn't break past behaviour where people perhaps rely on git rm to leave untracked files alone.


Kind regards,


Erik Janssen.

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

end of thread, other threads:[~2020-05-27 19:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-26 21:21 [Feature request] Add -u option to git rm to delete untracked files Erik Janssen
2020-05-27  7:34 ` Jeff King
2020-05-27 12:44 ` Đoàn Trần Công Danh
2020-05-27 14:29   ` Randall S. Becker
2020-05-27 19:31     ` Erik Janssen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).