
Some of the basic things we may need to do when working on a feature are to create a development branch and then delete that branch after merging 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 remote repository. There is a new command for that.
git push -u origin new...
Published on April 12, 2021 00:47