Gustavo
Gustavo

Reputation: 153

Git status and commit not showing files anymore

I have created a new repositoty and the commit -a and status behaviour changed suddenly. The command git commit . is working and commits changed files but the status command is not showing anything changed at all (The files where added with the add command)

Upvotes: 1

Views: 1396

Answers (1)

willpnw
willpnw

Reputation: 775

For the sake of simplicity, I will assume you're not resetting the head or index.

git status shows you changes with respect to the last commit. Once you have committed all your changes, there are no longer changes since the last commit, thus git status reflects this correctly. Modify anything and you will see this appear in

    git status

Previous changes will now be in

    git log

To see them similar to

    git diff

run

    git show

Upvotes: 1

Related Questions