githubteacher / github-for-developers-sept-2015

practice repo for the Sept 29-30 GitHub for Developers class
12 stars 36 forks source link

SO I deleted branch through WEB but still on my local..? #659

Closed rtauber92054 closed 8 years ago

stevendluke commented 8 years ago

:+1:

rtauber92054 commented 8 years ago

tauber@SDGL11b17b849:~/git/github-for-developers-sept-2015

git branch ght-rtauber92054-update

  • master rtauber@SDGL11b17b849:~/git/github-for-developers-sept-2015
rtauber92054 commented 8 years ago

don't leave us hanging...

jaw6 commented 8 years ago

That's right -- the local and remote (GitHub) branches are linked, but it's a loose connection, deleting the branch on GitHub doesn't automatically delete your local branch.

Try git branch -d <branch name> to delete a branch that has already been merged.

git branch -D <name> will override the safeguards and delete a branch that hasn't been merged.