3 ms·
If anyone is curious: git diff --cached is the same as git diff --staged. I don't know why they aliased them but I run git diff --cached very frequently and aft
by nickjj 4y ago
If anyone is curious: git diff --cached is the same as git diff --staged. I don't know why they aliased them but I run git diff --cached very frequently and after seeing this post's reference to --staged I wondered what the difference was. Turns out there is no difference.
- somehnacct3757 4y agoI use --cached as well but I think I will try switching to --staged since that name makes more sense to me. I similarly have gotten away from checkout in favor of switch/restore.
- rchard2scout 4y agoIIRC, it used to be --cached, and only recently has --staged been added as an alias, because staged makes more sense for users.