How to clone GIT repository with all branches and tags

2

In GIT it would be possible to clone a repository the same already downloading all branches and tags There would be a single command for this without the need to create a shell script ?

    
asked by anonymous 09.04.2014 / 23:05

2 answers

3

When you enter the command git clone <repositorio> , it automatically drops the branches along with the tag.

You can check using:

git branch -r


git tag

The remote is also set to origin and you can access it using:

git remote -v

Now if you go to Github and click on Download Zip, it will not load the git with it, then it will return: fatal: Not a git repository (or any of the parent directories): .git

If you have questions about how it works and what arguments git clone accepts, please visit: link

    
10.04.2014 / 06:36
2
$ git remote update
$ git pull --all
    
09.04.2014 / 23:07