1
The pull
serves to update the existing data on your machine, to clone the repository you must use the clone:
$ git clone <url>.git repo
$ cd repo
When making changes you must first make the commit
and then give the push
:
$ git add <file> <file>
$ git commit -m 'descrição do commit'
$ git push origin master -u
When the repository is cloned origin is comes configured.
To update the repository on another PC, use pull
(the repository must be previously cloned).
$ git pull origin master
Or in some cases
$ git pull
Sometimes it may not work with the origin master
, This also holds true for the push
(Own experience).
If more than one person uses the repository, always a
pull
before giving thepush
.
OK thanks, the more the problem was another had to add credentials to the TFS repository in order to download the project thank you.
– Marcelo Lopes