@deron
To create a new branch in Git, you can follow these steps:
Alternatively, you can create a branch from a specific commit or another branch by using the following command:
1
|
git checkout -b <new-branch-name> <commit-or-branch-name> |
Again, replace <new-branch-name>
with the desired name for your new branch, and <commit-or-branch-name>
with the commit hash or branch name you want to base your new branch on.
That's it! You have now created a new branch in Git.