- Loading...
...
If you are using Git version 2.24 or newer you can also use the command: git switch <NAME-OF-OTHER-BRANCH>
Yes, this is supported. If you prefer to have one local repository per issue you are working on, then you would have a local repository and a local branch per issue you are working on. For example:
| Code Block | ||
|---|---|---|
| ||
$ git clone https://github.com/<USERNAME>/jdk JDK-8123456
$ cd JDK-8123456
$ git checkout -b JDK-8123456 |
To create the first local repository representing the work on issue JDK-8123456. To create a second local repository for JDK-8654321, run:
| Code Block | ||
|---|---|---|
| ||
$ git clone https://github.com/<USERNAME>/jdk JDK-8654321
$ cd JDK-8654321
$ git checkout -b JDK-8654321 |
...