首先安裝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
點加號 暫存
提交