Due to the incredible support of the community, we've raised US$288,692.28 and added 7,339 new and renewing members this drive. Thank you so much! (We also accept donations year-round, so you are able to donate whenever is convenient for you.)
I am legitimately unsure why that flag is called --cached. No other part of Git that I can think of uses that terminology, although admittedly I can't think of any good alternatives. Maybe --staging or --index?
you've in fact just stumbled into a git trap: the fact that --cached and --index do different things in some commands; see also the excellently named "NOTES ON FREQUENTLY CONFUSED OPTIONS" part of the main gitcli manpage.
--staged and --cached are synonyms sometimes, as it says in the documentation for git diff. You would think they'd make it universal though and it's clearly not the case for git rm.
Comment on git good
Unknownlight on Chapter 4 Mon 27 May 2024 05:12PM UTC
Comment Actions
mincrmatt12 on Chapter 4 Mon 27 May 2024 05:21PM UTC
Comment Actions
Unknownlight on Chapter 4 Mon 27 May 2024 05:27PM UTC
Comment Actions
GlassOlive on Chapter 4 Thu 30 May 2024 02:57AM UTC
Last Edited Thu 30 May 2024 03:03AM UTC
Comment Actions