Closed tejasps2001 closed 1 year ago
Going to disagree with your change here. Here's a paraphrased version of what happens in that section:
README
and the CONTRIBUTING.md
filesgit add README
git diff
CONTRIBUTING.md
are showngit diff --staged
README
are shownSo we do cover the --staged
flag just after the section you're changing. What's more, while your change sounds friendlier, it's inventing this new concept of things being "in the repo." Is the working directory not in the repo? I'd argue that it is.
Thank you for your response and for taking the time to consider my suggestion.
Modified the statement regarding the 'git diff' command to clarify that it compares the changes between the files in your working directory and the files in your Git repository, and it shows the differences between the two sources. By default, it displays the changes that are not yet staged for commit. However, if you use the '--staged' or '--cached' option, 'git diff' will compare the changes between the files in your staging area and the latest commit in your Git repository.