2016-07-09 31 views

回答

0

您可以使用Git的bash像你的項目連接到存儲庫這個:

$ cd /your/project/path/ 
$ git init 
$ git remote add origin [email protected]:ali/first_app.git # Or other repo URLs 
$ git push -u origin --all # pushes up the repo and it's refs for the first time 
$ git push origin --tags # pushes up any tags 

希望有用。

+0

我的應用程序目錄位於我的遠程存儲庫上,可以使用GitHub桌面提交和同步無線問題。我不能做的是在Xcode中啓用源代碼控制。 – Trekker

1

我發現了這個問題。在preverences /源代碼控制下,「啓用源代碼管理」未被選中。一旦選中,我就可以添加我的GitHub遠程倉庫。