废话不多说
第一步:进入你要上传的文件夹,直接拖过去,避免敲错了
cd /Users/kevindemac/Desktop/百思奇解
第二步:建立一个本地仓库
git init
第三步:将文件添加到本地参考,直接拖文件夹过来就是,避免敲错
git add /Users/kevindemac/Desktop/百思奇解
第四步:将刚才添加的文件commit到仓库中
git commit -m "百思奇解"
第五步:到github上创建一个自己的Repository,
创建页面如下图所示:(链接:https://github.com/new)



第六步:将本地仓库和github远程仓库连接起来
git remote add origin https://github.com/LYWGod/baisiqijie.git
第七步:先拉一下
git pull origin master
第八步:上传
git push -u origin master
网友评论