-
第一步,先給本項目創建本地git庫
-
去遠程git庫創建項目
-
將已有項目上傳碼雲
- 如果報錯,
error: src refspec master does not match any error: failed to push some refs to 'https://gitee.com/liu63/threadpooltaskdemo.git'
。又可能是和我一樣,忘記將本地文件提交到本地庫了,所以
git commit -m "first commit"這句命令就是將代碼提交到本地庫
- 如果再次提交依然報錯
remote: Incorrect username or password ( access token ) fatal: Authentication failed for 'https://gitee.com/liu63/threadpooltaskdemo.git/'。 這報錯提示的很明顯,我的賬號密碼錯誤。那麼重新將我的賬號密碼登進去就可以了
- 再次提交就圓滿成功。提交的命令就是
git push -u origin master
-u一定要記得加喲!!!!!!