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 ?
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 ?
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
$ git remote update
$ git pull --all