Git — Delete Remote Branch

git push <remote> :<remote_branch>

in my case

git push origin :membership_processing

Deletes the membership_processing branch on origin (remote)

Advertisements

11 thoughts on “Git — Delete Remote Branch

  1. Thank you for your tip. I was trying to do something like:

    git branch -d origin/membership_processing

    But it didn’t work. Your tip worked perfectly!

  2. Hi, Yuji.
    Can you describe fully what happens on ‘git push origin :membership_processing’
    Case.. as i know.. git push will update project on your remote repo with your commit(-s).
    Thanks in advance.

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