首页 > 其他 > 详细

向已存在的项目文件夹中添加git地址

时间:2020-01-10 11:04:29      阅读:152      评论:0      收藏:0      [点我收藏+]
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 # 推送到远程仓库

向已存在的项目文件夹中添加git地址

原文:https://www.cnblogs.com/qianxunman/p/12174878.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!