1、本地需要首先安装git
并且新建好仓库,然后开始以下操作
2、找到需要上传的文件夹位置。直接点击:
3、输入:
git config --global user.name "你的昵称"
git config --global user.email "邮箱电话均可"
4、建立本地仓库
git init
5、将文件添加到仓库
git add .
6、输入标识
-
git commit -m "标识内容"
-
//例如:git commit -m "第一次上传"
7、将本地仓库链接到远程仓库
git remote add 仓库名 (可任意) 仓库地址(需要去git复制)
8、上传代码
git push 仓库名 --all