git 复制一个分支的文件到另一个分支

命令

位于主分支,复制Feature-5692 的所有文件到主分支
git checkout miui/Feature-5692 – *

只想复制某个文件的话

git checkout miui/Feature-5692 – 文件名/ 指定路径的某个文件

参考:
https://blog.csdn.net/qq_26545503/article/details/106950867
https://www.freecodecamp.org/chinese/news/git-checkout-file-from-another-branch/
https://nitaym.github.io/ourstheirs/

猜你喜欢

转载自blog.csdn.net/weixin_40557160/article/details/132099360