如何把已經存在的Xcode項目上傳Github

1.先在github上新建一個空的項目,不需要ignore和readme文件
2.把項目github倉庫地址拷貝後放到xcode > preferences > accounts裏面
3.cd進入本地項目,執行以下步驟就可以把項目上傳到github上啦
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/yaoliangjun/Test.git(項目地址)
git push -u origin master

從github上更新代碼:
git pull origin master

原文鏈接:https://blog.csdn.net/yaoliangjun306/article/details/50761090

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章