I’m trying to send someone a clone link for a git repository.
so this will give me access to cloning the master. But I want to give out a branch clone path how would I go about finding that path using terminal. The branch is a remote branch.
git@git.blobkick.com:mainproject.git
I’m not sure what you mean by “branch clone path”, but maybe this will help…
When you a clone a remote repository, you get all the branches. You typically end up on the
masterbranch, after which you can select your branch using thecheckoutcommand:If you want to end up on a branch other than
masteras part of thecloneoperation, you can use the-b(--branch) option:This would switch the local repository to the
mybranchbranch after completing the clone operation. This is identical to the above sequence of commands (well, other than thecdcommand).If this doesn’t address your question, please let me know.