Reputation: 1073
I have cloned Git repository from C:/temp/NetBeansProjects to C:/temp1/NetBeansProjects. I have changed the content of one file, "Version.java", on temp1, then staged it and committed it. Then I pushed it to the repository in temp using
git push origin master
I got messages that the push is successful and git status gives me message "Everything up-to-date". However, when I go to temp to check the content of the file "Version.java" I cannot see any changes, the file has not been updated, even date stamp is old.
I am on Windows 7 Professional.
Am I missing any steps in this whole procedure?
Upvotes: 0
Views: 2169
Reputation: 28951
Seems you have pushed into non-bare repository. In this case, repository is changed, but working copy files are not updated. Please read about bare and non-bare repositories.
You could see the difference using git status
in the temp
.
Do git checkout .
in the temp
to update working copy files from the repository.
Upvotes: 2