git LFS version control for non-code files such as binaries

Source: Internet
Author: User

Recently See Git lfs article, read the next introduction, is really good, similar to Git, but a little different oh. If you want to track the files, go ahead.

git lfs track *.pdf

In the past, when we were in Tableau's big files, we were going to use git, but it would be slow, and maybe Git server would be hung up.

Git in version code, will be differ, just make changes to the change record, do not know git lfs binary is how to do, perhaps each file saved a portion, this is simple (and git treats the same as binary); maybe it's a diff too. Later I looked at the data and found that git lfs actually put the file in a different place, rather than just keeping the file pointer (1kb file OH) in the Git repository.

Then there is the problem that the solution above solves the version of our binary file of tableau, but if we have both the code and the binary to do it.

What I can think of now is that if we have a bunch of PDFs, and a bunch of code, then
1. Git inside ignore*.pdf
2. Git lfs tracker *.pdf

Just see the introduction, the General collection of the next information, not to do the drill, after all, is a solution. Oh.

Doc document https://github.com/github/git-lfs/tree/master/docs?utm_source=gitlfs_site&utm_medium=docs_link& Utm_campaign=gitlfs https://zzz.buzz/zh/2016/04/19/the-guide-to-git-lfs/

PostScript to see the next history, the project's Readme on June 2, 2014 has been. November 23, 2015, Gitlab announced support for Git Lfs,gitlab 8.2 to start supporting Gitlab LFS, but in order to ensure that the performance file size is best not more than 1GB July 18, 2016, BitBucket also support git LFS, a bit slow ha , but Doc is good, and there's a very good introductory video.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.