更新代码到gitee
进入目标文件夹,在空白处右键,选择Git Bash Here 进入
git add .
git commit -m "注释"
git push origin master
git add . 可能报错
解决:
git config --global core.autocrlf true
正常运行:
从gitee拉取代码
git pull
可能会报错:账号密码不正确
#重置密码命令
git config --system --unset credential.helper
初次建立gitee仓库
进入官网
建立仓库
创建成功:
配置
1.配置用户名和邮箱
git config --global user.name "xxx"
git config --global user.email "xxx"
2.初始化本地仓库
git init
3.添加项目目录下所有文件至本地仓库
git add .
4.为提交的内容添加注释说明
git commit -m '本次提交的说明'
5.将本地仓库与远程仓库链接
git remote add origin https路径
6.将本地仓库中的文件推送到指定远程仓库中
git push -u origin master
报错:warning: in the working copy of '.github/FUNDING.yml', LF will be replaced by CRLF the next time Git touches it
参考感谢:windows下解决Git报错: LF will be replaced by CRLF the next time Git touches it
上传成功: