- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
$ git branch -a
* SocialAct
master
remotes/origin/HEAD -> origin/master
remotes/origin/SocialAct
remotes/origin/social
我想删除远程分支“remotes/origin/social”,并应用了以下命令:
$ git branch -d -r origin/social
Deleted remote branch origin/social (was 26f6f61).
但我不知道如何远程带来这些更改,以便从源中删除分支并且每个人都可以看到更改。我尝试了 git push 但它不起作用
任何帮助。
最佳答案
我有这个错误(来自上面):
Thanks. Actually I noticed this solution and tried earlier. But this gives following error... $ git push origin :heads/socail Enter passphrase for key '/h/.ssh/id_rsa': error: unable to push to unqualified destination: heads/socail The destination refspec neither matches an existing ref on the remote nor begins with refs/, and we are unable to guess a prefix based on the source ref. error: failed to push some refs to 'git@xxxxxx.git' – Himel May 24 '10 at 9:37
它似乎对我是否真的远程删除了它感到困惑。我像这样解决它:
git push origin HEAD:branch_to_delete
git push origin :branch_to_delete
这对我有用。使用:git 版本 1.7.3.1.msysgit.0。
关于git - 无法删除无意中创建的远程分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2895906/
这个问题已经有答案了: Why do I get "AttributeError: NoneType object has no attribute" using Tkinter? Where did
我有一个列表,我想从中删除没有出现在另一个列表中的项目。我试过以下方法: for w in common: for i in range(1,n): if no
我遇到了一些自定义管理页面触发 Django 管理站点而不是显示我的自定义页面的问题。 我的 urls.py 如下: urlpatterns = patterns('', # ... trim
我尝试使用 href 方法下载 CSV 文件,但是将其设置为 href 标记时数据似乎被 chop 。对于 IE,我使用了 msSaveBlob,它似乎工作正常并且所有数据都已正确下载。
我是一名优秀的程序员,十分优秀!