Remove remote branch with GIT

Description:

Having pushed a wrongly extended branch to origin, or you just don’t need to have a branch both locally and remote.

Solution:

Locally, deleting the branch was covered in a previous article.

However, there are some cases that require the branch to be deleted from origin. With GIT this is very easy:

git push origin :branchName

Advertisements

About admin

Just another php developer trying to give something back to the community.
This entry was posted in Version control and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s