Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7843245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:30:28+00:00 2026-06-02T16:30:28+00:00

I saw previous posts asking about this, but none that solved it for me.

  • 0

I saw previous posts asking about this, but none that solved it for me. I don’t use Git through the command line, I use it as it’s integrated into Xcode. I created a branch and pushed it to GitHub, and now I want to delete it. I deleted it in Xcode, but it’s still on GitHub. The GitHub directions say to just go to Admin and delete the repo, but there it says it’ll delete the whole project, not just the branch. So what am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:30:29+00:00Added an answer on June 2, 2026 at 4:30 pm

    You want to delete a branch on github? Just do

    $ git push origin :branch-name
    

    where you have to substitute origin with the name of the remote repository and branch-name with the name of the branch you want to delete at github.

    Edit: Note the colon in front of the branch name, it is important.

    Edit 2: To be more verbose:

    $ cd /path/to/local/git/checkout
    $ git remote -v show
    

    Pick the remote name from the first column which corresponds to
    the github URL where you want to delete the branch. I call it
    origin here. branch-name is the name of the branch you want to delete. Delete it using:

    $ git push origin :branch-name
    

    Edit 3: If you want to learn about git, I can recommend the free book by Scott Chacon. The relevant section is here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw some documentation and previous questions about this, but couln't find a solution.
I have looked through as many previous questions as possible but never saw a
I saw comments in a previous question saying that it is best to use
I saw previous SO posts 1 , 2 etc. I want to pass a
I saw this C# using statement in a code example: using StringFormat=System.Drawing.StringFormat; What's that
I saw a java function that looked something like this- public static<T> foo() {...}
I know there is many questions about CSS inheritance but none of what i
Sorry, lots of code coming up.. I saw another question like this that used
I am talking about Device resolution not screen size. I saw many previous questions'
In previous versions of Visual Studio I remember I saw the error code/number in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.