拉非二进制文件,我是很新,饭桶。在一台计算机我跑从混帐藏匿
git stash save myfeature
git stash show -p > myfeaturepatch
我复制myfeaturepatch
到第二台计算机和跑
git apply myfeaturepatch
我做了一些改变,其包括增加一些字体文件(二进制),然后运行
git stash save myfeature2
git stash show -p > myfeaturepatch2
当我尝试将此第二个版本回到我的第一台电脑,我得到
error: cannot apply binary patch to 'myfont.ttf' without full index line
个
我的猜测是,我需要运行git stash save --binary myfeature2
时,我的藏匿处。不幸的是,由于git stash
删除了它保存到文件中的更改,并且由于上述错误我无法将我的补丁应用到任一台计算机,所以我目前无法访问我所做的更改。
我已经尝试了很多不同git apply
和git stash
的命令,但我没有什么事情,什么参数的意思是从我的补丁文件拉出只是非二进制文件的完整足够的了解。我认为有一种方法可以做到这一点。