我正在尝试在Bitbucked中删除带有西里尔文标题的分支。当我选择操作>删除时,我会收到此消息“找不到页面。我们找不到您请求的页面。”当我尝试使用
从cmd删除它时 git push origin --delete <my_cyrillic_titled_branch>
我收到此错误:
error: unable to delete '<my_cyrillic_titled_branch>': remote ref does not exist
error: failed to push some refs to '<repo_url>'
更新: 我使用Centos 7和git版本1.8.3.1
我应该如何删除它?
答案 0 :(得分:2)
来自cmd
你在Windows&#39;命令行?我想这就是问题所在;试试Git Bash,因为Git和Bitbucket都没有任何问题地使用西里尔语:
user@nohostname:~/development/bitbucket.org/storage> git --version
git version 2.7.4
user@nohostname:~/development/bitbucket.org/storage> git checkout -b ветка
Switched to a new branch 'ветка'
user@nohostname:~/development/bitbucket.org/storage> git push -u origin ветка
Password for 'https://*********@bitbucket.org':
Total 0 (delta 0), reused 0 (delta 0)
remote:
remote: Create pull request for ветка:
remote: https://bitbucket.org/*********/storage/pull-requests/new?source=%D0%B2%D0%B5%D1%82%D0%BA%D0%B0&t=1
remote:
To https://*********@bitbucket.org/*********/storage.git
* [new branch] ветка -> ветка
Branch ветка set up to track remote branch ветка from origin.
user@nohostname:~/development/bitbucket.org/storage> git push -u origin :ветка
Password for 'https://*********@bitbucket.org':
To https://*********@bitbucket.org/*********/storage.git
- [deleted] ветка