What is a Git branch, and how do you branch in Git? The newest edition in our Learning Git with GitKraken series covers everything you need to know about branching in Git, including how to delete a Git branch, how to create a Git branch, how to rename a Git branch, and how to checkout a Git branch using the GitKraken Git client.
Watch this beginner Git tutorial video—Learning Git: How to Git Branch—to increase your foundational knowledge about branching in Git and see an example of working with branches in GitKraken.
Get the latest version of the GitKraken Git Client:
Branching in GitKraken
In this example, we have two Git branches: dev and production. To start work on a new feature, we will need to create a new feature branch off the most recent commit on the dev branch.
Create a Git Branch in GitKraken
To create a new Git branch using GitKraken, right-click on a target commit and select Create branch here.
Rename a Git Branch in GitKraken
To rename a Git branch using GitKraken, right-click the branch name from the graph and select Rename [branch name].
Delete a Git Branch in GitKraken
To delete a Git branch using GitKraken, right-click the branch name from the graph and select Delete [branch name].