October 2016
Beginner
861 pages
20h 37m
English
Suppose you are just having your local Git repository, and you have no intentions at the moment to share the code with others; however, you can easily share this knowledge while working with a repository with one or more remotes. Local branches with no remotes work exactly in this fashion. As you can see in the examples, we are cloning a repository, thus we have a remote.
Let's start by creating a few local branches.
Use the following command to clone the jgit repository to match:
$ git clone https://git.eclipse.org/r/jgit/jgit $ cd jgit
Perform the following steps to manage your local branches: