1.初始化
git init
2.将文件添加到缓存区
git add . //注意要加上'.'。
3.关联git仓库
remote add origin http://网址:port/username/git仓库名称.git
4.提交
git commit -m'填写备注'
5.上传
git push origin master //master是分支,有些是main,需要注意
1.初始化
git init
2.将文件添加到缓存区
git add . //注意要加上'.'。
3.关联git仓库
remote add origin http://网址:port/username/git仓库名称.git
4.提交
git commit -m'填写备注'
5.上传
git push origin master //master是分支,有些是main,需要注意