Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode4 从本地Repo将文件上载到Github_Xcode4_Github - Fatal编程技术网

Xcode4 从本地Repo将文件上载到Github

Xcode4 从本地Repo将文件上载到Github,xcode4,github,Xcode4,Github,我有一个Xcode 4项目,当我第一次打开它时,我检查了“为项目创建本地响应…”。我在GitHub也有回购协议。如何将文件从我的计算机上载到github中的repo? 谢谢。 将本地文件夹初始化为git repo: git init 在repo中暂存本地文件 git add . 将代码提交到repo git commit -m 'comment' 告诉git您的远程回购 git remote add origin //your github conneciton here git pus

我有一个Xcode 4项目,当我第一次打开它时,我检查了“为项目创建本地响应…”。我在GitHub也有回购协议。如何将文件从我的计算机上载到github中的repo? 谢谢。

将本地文件夹初始化为git repo:

git init
在repo中暂存本地文件

git add .
将代码提交到repo

git commit -m 'comment'
告诉git您的远程回购

git remote add origin //your github conneciton here
git push origin master
将本地主分支推送到“原始”远程回购

git remote add origin //your github conneciton here
git push origin master

将本地文件夹初始化为git repo:

git init
在repo中暂存本地文件

git add .
将代码提交到repo

git commit -m 'comment'
告诉git您的远程回购

git remote add origin //your github conneciton here
git push origin master
将本地主分支推送到“原始”远程回购

git remote add origin //your github conneciton here
git push origin master