Jar file gets corrupted after pushing to github

落花浮王杯 提交于 2020-01-03 17:43:34

问题


There is this jar file which is produced locally as a result of the project build. However after it's pushed to github, it gets corrupted. Ran checksum on both local and downloaded jar files and they are different. Cannot even extract it.


回答1:


It's probably because the line endings get converted.

Put this in your .gitattributes file (create it if it doesn't exist):

*.jar binary


来源:https://stackoverflow.com/questions/28528441/jar-file-gets-corrupted-after-pushing-to-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!