|Re: developer [message #1377351 is a reply to message #1377266]
||Fri, 23 May 2014 21:01
| Robin Rosenberg
Registered: July 2009
samuel wang skrev 2014-05-23 22.14:|
> I want to get all the history of remote Git Rep including the branches, my question is how to get the data and the history from remote GIT repository without local
> repository? or do I have to create one local Rep?
> I don't want to create so many local branches in order to get all of them.
> when I clone the master branch in my local, do I get all the branches from the remote server?
When you clone a remote repo you will by default get all branches and tags from the remote repostory, not just master. The remote branches have a prefix like
refs/remotes/origin/ or origin/ for short. Your master branch is a created from origin/master by default.
You can checkout a remote branch without creating a local branch so you can look at it. I don't think you can, i practial terms, view the history of any arbitrary remote
branch without checking it out first.
Powered by FUDForum
. Page generated in 0.13007 seconds