Reputation: 12140
As the question says, after I do a fresh clone of a repo, a git show, shows a lot of files as changed, but I haven't yet touched any of the files. A git diff gives nothing.
I need to make changes and see the changes using a git show, but only my own changes. The git show currently isn't letting me do this.
I checked out the following question, but I don't have a .gitattributes file.
Files showing as modified directly after git clone
EDIT : Using git on linux.
Upvotes: 2
Views: 1214
Reputation: 14843
git show
is used to show all the changes of between HEAD and HEAD~1.
I think what you are looking for is git diff --cached
. (Assuming you have already staged your changes using git add
)
Upvotes: 2