相关疑难解决方法(0)

如何在本地和远程删除Git分支?

我想删除本地和我在GitHub上的远程项目分支上的分支.

尝试删除远程分支失败

$ git branch -d remotes/origin/bugfix
error: branch 'remotes/origin/bugfix' not found.

$ git branch -d origin/bugfix
error: branch 'origin/bugfix' not found.

$ git branch -rd origin/bugfix
Deleted remote branch origin/bugfix (was 2a14ef7).

$ git push
Everything up-to-date

$ git pull
From github.com:gituser/gitproject
* [new branch] bugfix -> origin/bugfix
Already up-to-date.
Run Code Online (Sandbox Code Playgroud)

remotes/origin/bugfix在本地和GitHub上成功删除分支我需要做些什么 ?

git version-control git-push git-remote git-branch

2万
推荐指数
42
解决办法
784万
查看次数

标签 统计

git ×1

git-branch ×1

git-push ×1

git-remote ×1

version-control ×1