

On your Business Application Studio instance in a bash terminal you need to create a new sshkey. If you’re reading this because you already ran git clone without the -branch flag, don’t worry, you can simply switch to the other branch: git switch dev. The zeroth step though is to set up the ssh connection to git. git clone is a Git command line utility which is used to target an existing repository and create a clone, or copy of the target repository. Enter your HTTPS repository path into the Repository path field. Alternatively subsitute your chosen git remote repository system. Clone Remote Git Repository into New Project On the Home tab, click New > Project > From Git.

We can access any of the branches with a simple checkout. When you clone repositories using a Git clone command, this clones the branch from the master or default. The first thing to do is to create a new github repository. The Git already has tracking information for all the remote branches following the clone. It looks like we only have access to the master branch locally and that we have to remotely checkout the other branches. So taking my fork of the Sublime package control repository as an example, when I clone the repository my branches look like this: git branch -avv package control clone While I initially thought that Git only downloaded the master branch, my friend Michael showed me that that was not the case. What if you wanted some of the remote branches in addition to the “active branch” (which is usually master) ? When you clone a repository through Git, it does the following:Ĭlones a repository into a newly created directory, creates remote-tracking branches for each branch in the cloned repository (visible using git branch -r), and creates and checks out an initial branch that is forked from the cloned repository’s currently active branch. Git Clone Only Creates the Master Branch Locally
