There is something I don't understand with the git pull
command.
I have a foobar
Git repository with two files, named f1
and f2
.
First, I clone this repo using this command:
git clone git@mycompany:foobar/foobar.git
I make some wrong modifications to both the f1
and f2
files, add them to Git index and commit then.
git add -A
git commit -m 'a test wrong modification'
I decide now that this modifications were wrong and I want to replace my files with the remote version. So I use git pull
to do this.
git pull
Already up-to-date.
Git answers that project is already up to date. What's wrong with what I'm doing? How should I proceed to replace my local version with the remote version?