LINUX

How to Delete a Git Branch in Local and Remote

Today, I came to knew about how to delete  Git unsed branches from our local and remote repo.

Here are few commands that i used

  1. git branch  -to see what all branches we have
  2. git push origin –delete my_branch  – to delete branch from remote
  3. git branch – if you can see still your branch in local
  4. git branch – D my_branch – Delete my branch locally too

Refer URL : https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-both-locally-and-remotely

Leave a Reply

Your email address will not be published. Required fields are marked *