注册一个属于自己的GitHub账号
1、构建项目仓库(这里我创建了一个Demo仓库)

2、搭建本地项目(我用Xcode简单的搭建一个Demo的项目)
3、将本地项目上传到构建的仓库(终端命令操作)
1、cd 本地项目
2、git init
3、git config --global user.name "GitHub的账户名"
4、git config --global user.email "GitHub填写的邮箱"
5、git add 项目地址/或者 ( git add . ---->表示添加了全部)
6、git commit -m "对项目文件进行注释"
7、git remote add origin "仓库地址"
8、git pull --rebase origin master
9、git push -u origin master
仓库地址

至此一个repositorie就这样搭建完毕。
3、更新仓库文件
1、git status
2、git add *
3、git commit -m "更新说明"
4、git pull(如果有分支,拉取最新代码/没有就省略这步)
5、git push
4、删除仓库
第一步:

第二步:

第三步:

网友评论