从本地回复上传文件到Github
问题描述:
我有一个Xcode 4项目,当我第一次打开它时,我没有选中“为项目创建本地响应...”。我也在GitHub有一个回购。如何将文件从我的电脑上传到github的repo中? 谢谢。从本地回复上传文件到Github
答
http://help.github.com/create-a-repo/
初始化你的本地文件夹作为一个git回购:
git init
阶段回购本地文件
git add .
提交你的代码,以回购
git commit -m 'comment'
告诉git的有关远程回购
git remote add origin //your github conneciton here
把你本地的master分支到 “原点” 远程回购
git push origin master