Git 更换设备后怎么做旧仓库1234567891011git init 仓库名字# 建立远程连接git remote add origin https://github.com/user/repo.git #获取远程更新git fetch origin # 把更新的内容合并到本地分支git merge origin/master # 加入差异的文件,就是本地修改的文件git add . git commit -m "Commit message" git push origin master新仓库12345git init()git remote add origin https://github.com/user/repo.gitgit add .git commit -m "Commit message"push origin master建议拉取时推荐12git fetch origin mastergit merge origin/master不推荐1git pull