往github上传demo

一直在github上寻找demo,但怎么传demo上githun呢?html

http://www.2cto.com/kf/201504/390397.htmlios

首先在github上 new一个repository工程;git

 

两种方法,一种是在xcode里面选择git,填上git地址,进行commit & pushgithub

还有一种是经过命令行进入你的ios项目文件夹,而后执行xcode

git initurl

git remote add origin you_project_url_on_git命令行

git add .code

git commit -m "first commit"htm

git push origin masterrem

 注:若是在git init的时候 出现Reinitialized existing Git repository in 。。。

说明你的工程里已经含有.git的文件了,能够 用命令行显示隐藏文件,而后删除它;

而后继续执行上面的步骤

相关文章
相关标签/搜索