How to Create and Delete a Git Branch

Creating and deleting local and remote development branches

Some of the basic things we may need to do when working on a feature involved creating a development branch and then deleting that branch after merging all the changes.

Here is how we can do that.

Creating a Local Branch

Below is an example of creating a new branch new-dev-branch from the master branch.

git checkout -b new-dev-branch masterCreating a Remote Branch

Creating a local branch does not mean that a branch is also created in the remo...

 •  0 comments  •  flag
Share on Twitter
Published on September 30, 2022 04:15
No comments have been added yet.