在本地仓库陆续执行以下命令:
git init
git commit -m ‘提交说明’
git remote add origin 远程仓库地址
git branch --set-upstream-to=origin/master master
git pull origin master ----allow-unrelated-histories
顺序执行完即可正常操作
在本地仓库陆续执行以下命令:
git init
git commit -m ‘提交说明’
git remote add origin 远程仓库地址
git branch --set-upstream-to=origin/master master
git pull origin master ----allow-unrelated-histories
顺序执行完即可正常操作
本文标题:Git--将已有的项目添加到github
本文链接:https://www.haomeiwen.com/subject/tzlpdftx.html
网友评论