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 # 推送到遠程倉庫