Xcode 6 how to remove branch in origin

泄露秘密 提交于 2020-01-14 03:05:08

问题


I have two question about Xcode 6 by operational git version control.

1. I created a branch xxx and push this branch to server ,but I don't want it anymore, can I remove it. When I selected origin branch (Test01,Test02) , I couldn't click remove sign "-". If selected local branch it can click remove sign "-".

2. Does any way to checkout old version from server in Xcode 6? I using Visual Studio Team Services git version control

thanks ...


回答1:


If XCode doesn't allow that operation, you can at least fall back to the git command line and:
delete the remote branch (and clean the remote traking branch in your repo)

    git push --delete 
    git fetch <remote> --prune


来源:https://stackoverflow.com/questions/26751167/xcode-6-how-to-remove-branch-in-origin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!