Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
抱歉新手问题,但有没有办法将其他人提交(到他自己的仓库)导入我的仓库?手动更改 900 多个文件会很困难
您需要将对方的仓库添加为您的远程仓库,并获取其更改:
git remote add matefork <github-url> git fetch matefork
然后 git 知道提交,只需用它的 SHA 挑选它
git cherry-pick <SHA1>
制作一个补丁文件,git format-patch 然后将其应用到您的仓库中git apply patchfile
git format-patch
git apply patchfile