码迷,mamicode.com
首页 > 其他好文 > 详细

git 本地项目关联新repo

时间:2020-03-17 08:56:42      阅读:52      评论:0      收藏:0      [点我收藏+]

标签:style   项目   git push   commit   comm   本地   lan   bsp   gitignore   

 

git init

git add .

git commit -m "初始化"

git remote add origin repo-url

git pull origin master --allow-unrelated-histories

git push -u origin master

 

gitignore 内容生成工具

git 本地项目关联新repo

标签:style   项目   git push   commit   comm   本地   lan   bsp   gitignore   

原文地址:https://www.cnblogs.com/myesn/p/git-remote-add.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!