问题
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