Delete branches in Bitbucket

If the branches are only local, you can use -d if the branch has been merged, like If the branch contains code you never plan on merging, use -D instead. If the branch is in the upstream repo (on Bitbucket) you can remove the remote reference by Also, if you’re on the Bitbucket website, you can remove branches you’ve … Read more

“git checkout ” is changing branch to “no branch”

If you checkout a commit sha directly, it puts you into a “detached head” state, which basically just means that the current sha that your working copy has checked out, doesn’t have a branch pointing at it. If you haven’t made any commits yet, you can leave detached head state by simply checking out whichever branch you … Read more