我想删除本地和我在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上成功删除分支我需要做些什么
?
在tortoisegit中有一个选项可以撤消最后一次提交到repo中吗?
我错误地将大量不必要的文件推送到我需要撤消的git存储库(branch:master)中.我已经搜索了很多关于tortoise git中正确的选项来撤消push并返回到最后一次提交之前的状态.请告诉我一个撤消我上次提交的方法.
我知道从命令行重命名分支的方法,但是 - 因为我正在使用TortoiseGit - 我很好奇是否有任何选项可以做这样的事情.
谢谢你的答案:)