In this tutorial, we will learn two important things.
- Delete a git branch.
- See the differences between the two commits.
1. Delete a Git Branch: To delete a git branch first we will create a git branch by the below command.
Command -
git checkout -b my-branck
Branch created and checkout to the new branch |
Now switch to Master branch see all branches and delete our last created branch.
Command -
git checkout master
git branch
Delete Command -
0 Comments