1.

Delete Branches

Answer»

Once the work is done on a branch and merged with the Main branch, one can delete the branch.

The following command is used to delete branches:

git delete -d <branch_name>

Note: This command deletes a copy of the branch, but the original branch can still exist in remote repositories.

To delete remote branches, use the following command:

git push origin --delete <branch_name>


Discussion

No Comment Found