如何通过git bash上传本地文件到远程git仓库中
- 先将远程仓库下载下来
git clone 仓库地址
- 然后找到下载的位置,将你想要上传的文件放进去
- 然后关联远程仓库
git remote add origin 仓库地址
- 用命令查看是否关联成功
git remote -v
- 然后提交已经修改的文件
git add ./文件名
git commit -m "注释"
- 然后推送文件
git push origin
- 最后到远程仓库中查看是否上传成功
git clone 仓库地址
git remote add origin 仓库地址
git remote -v
git add ./文件名
git commit -m "注释"
git push origin