Hacker News new | ask | show | jobs
by etherael 5801 days ago
What does this do?

git branch origin :featureBranch?

disclaimer; don't experiment in a data critical repo

1 comments

I assume you mean `git push origin :featureBranch`? Deletes a branch pointer on a remote repo. No data is lost, it just takes a little effort to dig it back up if you don't know what SHA the branch was at.
Yeah, that's the one I meant, I still find it extremely counterintuitive, one character is the difference between push my current changes to origin and delete the branch on the remote side.