Cannot push to gitlab from xcode 7

前端 未结 5 1588
攒了一身酷
攒了一身酷 2021-01-05 02:59

One unhappy side effect of upgrading to Xcode 7 is that I can no longer push to my Gitlab repo. I have been pushing and pulling from my project without problem for the last

5条回答
  •  爱一瞬间的悲伤
    2021-01-05 03:34

    I found that Xcode 7 does not like tilt "~" in the URL anymore. Please run "git config --list" and check the URLs. For example, my remote URL looked like this:

    ssh://nobody@nowhere.com/~/product1.git
    

    Xcode can push fine after I run the following commands:

    git remote set-url origin ssh://nobody@nowhere.com/home/nobody/product1.git
    
    git config branch.master.remote ssh://nobody@nowhere.com/home/nobody/product1.git
    

提交回复
热议问题