首先呈上参考链接:
https://github.com/bringbird/WJFirstRespository
http://www.jianshu.com/p/62ce7e9319fa
感谢两位大佬详细的教程,小白受益匪浅😁~
这个教程我去年就写好了,不过很乱啊啊 ,写的让自己以后看的,结果过了一年自己都看不懂了哭/(·ㄒoㄒ)/~~。。。
本教程不是从第一步来的哦,是从上传项目开始的哦,按步骤走咯~
一、创建github账号
没有GitHub账号的小可爱们自行Google咯,我一年前建过了就不做无用功了哈(参考上面链接)
二、SSH授权
1.生成SSH key (参考上面链接)
2.在GitHub上添加SSH Key (参考上面链接)
三、创建本地仓库
*1)进入GitHub首页点击新建仓库(文件夹名字就是你想上传的 项目名)



*2)打开终端,进入你要上传的项目路径下
$ cd 项目路径

*3)在根目录下建立仓库(初始化一个仓库)
$ git init
*4)将所有文件添加到仓库
$ git add .
*5)提交
$ git commit -m “Commit Info”

*6)添加源到GitHub
$ git remote add origin git@github.com:UUCheckNow/BSBusiness.git

*7)上传源到GitHub
$ git push -u origin master
本地放项目的文件夹名字一定要和github上的仓库同名!

大致就是这些~将就看看哈,看不懂欢迎评论问我~
附上更新项目需要敲的命令
$ cd /Users/lhn/Desktop/UUDemo
$ git add .
$ git pull
$ git commit -m '添加navg和tabbar'
$ git push
果然还是很乱哭/(ㄒoㄒ)/~~
不过我寄几能看懂了啊哈哈哈,你们也加油看哈

网友评论