本地代碼上傳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