使用git將本地代碼上傳到gitee【碼雲】


  •  使用gitee在服務器創建要上傳的分支地

 

  • 將本地項目,初使化git目錄 
git init

   

  • 將你本地倉庫與碼雲上的遠程倉庫關聯起來

git remote add origin 遠程倉庫地址
git remote add origin https://gitee.com/howdychen/springbootdemo.git


設置用戶名和郵箱號
git config user.name ***

  git config ***@163.com

  • 使用命令查看遠程分支配置情況
 cat .git/config

  • git pull origin master 將碼雲上的倉庫pull到本地文件夾
git pull origin master
  • 添加提交代碼
git add .
  • 添加本次提交說明,git commit -m “第一次將本地代碼上傳碼雲”
git commit -m '第一次將本地代碼上傳碼雲'
  • 將本地代碼上傳到碼雲倉庫:git push origin master
git push origin master

 



 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM