Goal:
If you are done with your work and as a archival policy if you want to delete a branch from local as well as git server. This article can help you.
Delete Branch on local
git branch -D <Branch_Name>
Delete Branch on server
git branch :<Remote_server_Name><Branch_Name_on_Remote>
Sample
git branch -D deployed_feature
git branch :origin deployed_feature
If you are done with your work and as a archival policy if you want to delete a branch from local as well as git server. This article can help you.
Delete Branch on local
git branch -D <Branch_Name>
Delete Branch on server
git branch :<Remote_server_Name><Branch_Name_on_Remote>
Sample
git branch -D deployed_feature
git branch :origin deployed_feature
Comments
Post a Comment