I Can’t Clone a git repository on TFS on my local machine

Asked

Viewed 290 times

1

inserir a descrição da imagem aqui

I honestly am already getting bored because I am doing the clone process correctly and this crap does not work, I decided to appeal to those who really know, I am beginner still in the profession more to running after to study and learn.

1 answer

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 the push.

  • OK thanks, the more the problem was another had to add credentials to the TFS repository in order to download the project thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.