向已存在的項目文件夾中添加git地址


git init # 先初始化
git remote add origin git@git.dev.tencent.com:xxx/xxx.git #添加遠程倉庫
git add *  # 文件加入版本控制
git commit -m 'init' # 提交
git branch --set-upstream-to=origin/master  #關鍵步驟,If you wish to set tracking information for this branch you can do so with:
git pull --allow-unrelated-histories # 關鍵步驟,
git push orgin master # 推送到遠程倉庫


免責聲明!

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



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