How does Git deal with binary files?

后端 未结 4 1952
既然无缘
既然无缘 2020-12-24 11:17
  • Do I have to do something to tell Git whether some files are binary (like in Subversion)? Or, can Git handle binary data automatically?
  • If I change the binary
4条回答
  •  粉色の甜心
    2020-12-24 12:05

    git add my-binary-file
    git commit
    git push
    

    Will add your binary file; it is automatic.

    Indeed, if you have 100 versions of your file it will store it (but compressed).

    You can use submodules to make references to other repositories.

提交回复
热议问题