How to remove or delete branch from git repository in gitlab using command line

How to remove or delete branch from git repository in gitlab, github using command line


In this post, we will be learning about how to delete a branch from git repository in gitlab using command line

Step 1: Let's check the branch first, which we want to delete the branch from git repository by following: 

Checking the Branch:


    $ git branch --all


Step 2: Now, check your correct branch which you want to delete it and lets delete the branch by following command:


    $ git push origin --delete your_branch_name

In this command --delete is the main code for deleting the branch from your git repository by calling its branch name.


Step 3: You are done. Thanks for reading.. 


© Copyright - 2018 - 2021 | All rights reserved at Funda of Web IT