本地代码上传gitee && vscode更新提交代码到gitee


首先安装GIT
打开Git Bash
git config --global user.name "your name" //配置昵称 git config --global user.email "your email" //配置邮箱 git config --global credential.helper store //记住上面2个信息,以后就不用频繁输入


git init git add .
//添加文件 git add README.md(如果没有这个文件,会在后面几个操作中报错,解决方法是通过命令合并:git pull --rebase origin master) git commit -m "first commit" git remote add origin git@gitee.com:xxx/xxx.git //gitee仓库地址 git push -u origin master //提交到码云平台

项目文件夹下启动git bash  进行上面的操作

 

vscode上更改了代码后 更新到gitee

 

点加号 暂存

 

提交

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM