Git 提交和获取代码

获取代码的时候需要当前文件夹为空

使用git从远程仓库获取代码

然后创建项目.net core

提交项目的时候需要关闭vs

提交项目流程

git init # 创建仓库,如果是从远程获取到的就不需要创建仓库了
git add . # 将当前文件夹添加到仓库中
git commit -m "描述" # 提交仓库到中间库中,并添加描述
git remote add origin https://gitee.com/shllong/Hig/ # 设置项目源
git pull origin master # 拉取一下项目
git push -u origin master # 提交项目
原文地址:https://www.cnblogs.com/sunhouzi/p/12107242.html