我读了"How to Create a CocoaPod in Swift",当我试图推送到git时我卡住了:
cd ~/Documents/Libraries/RWPickFlavor
git init
git add .
git commit -m "Initial commit"
git tag 0.1.0
git remote add origin [Your RWPickFlavor Git URL]
git push -u origin master --tags
当我执行最后一条指令时,终端输出我不会处理协议的问题' [https'
注意:我的git版本是2.3.2,Pod版本是0.38.0
答案 0 :(得分:1)
您确定正确设置了远程网址吗?您可以使用以下命令进行检查:
git remove -v
我怀疑你的方括号,如下:
origin [https://github.com/...git] (fetch)
origin [https://github.com/...git] (push)
看起来应该是这样的:
origin https://github.com/...git (fetch)
origin https://github.com/...git (push)
答案 1 :(得分:0)
您可以下载GitHub应用程序并在不使用termal / commandline
的情况下推送到存储库只要你在创建xcode项目时勾选了git repo