- Loading...
$ git config --global user.name "Full Name"
$ git config --global user.email "full.name@company.com"
$ git config --global core.editor "vim"
$ git checkout -b <NAME-OF-BRANCH>
If you are using Git version 2.24 or newer you can also use the command: git switch --create <NAME-OF-BRANCH>
A common way of structuring your local branches is to name them after the issue they correspond to, for example JDK-8237566.
$ git branch JDK-8237566 * JDK-8149128 JDK-8077146 master
The currently checked out branch has an asterisk ("*") next to it.
$ git log --format=oneline --graph --all
$ git checkout <NAME-OF-OTHER-BRANCH>
If you are using Git version 2.24 or newer you can also use the command: git switch <NAME-OF-OTHER-BRANCH>
Go to https://github.com/settings/tokens and and click on "Generate new token"