Branches are stored as files containing the SHA they point to. Try deleting the file for this branch, named localbranch, from the .git/refs/head/ directory within your project:
rm .git/refs/heads/localbranch
Note that if this branch exists on the remote server as well (though the branch name doesn't suggest so), you could use git push origin :branchname to do that
发布评论
评论(2)
两种可能。
.git/packed-refs
文件,搜索一下feature-upcategory
,如果有就把那一行删除。.git/refs/HEADS
文件夹,找一下有没有这个feature-upcategory
,如果有就把这个文件删除。从
stackoverflow
看来的stackoverflow 原链接
应该不用翻译了吧?