I can not clone a git repository in TFS on my local machine

1

I'm honestly already getting annoyed because I'm doing the clone process correctly and this crap does not work, I decided to appeal to those who really know, I'm still a beginner in the profession but I'm just going to study and learn.

    
asked by anonymous 11.05.2016 / 05:01

1 answer

1

The pull is to update the data already existing on your machine, to clone the repository you should use the clone:

$ git clone <url>.git repo
$ cd repo

When you make changes, you must first do commit and then give push :

$ git add <file> <file>
$ git commit -m 'descrição do commit'
$ git push origin master -u

When the repository is cloned, origin is 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 origin master , this is also true for push (Self-experience).

  

If more than one person uses the repository, always a pull before giving push .

    
11.05.2016 / 09:38