Go to file
2017-02-17 17:33:58 -07:00
commands merge master 2017-02-17 10:14:00 -07:00
config drop lfs.batch support, its always true now 2017-02-13 14:30:59 -07:00
debian unused. 2016-11-22 09:42:22 -07:00
docker run against gitlfs packages from docker hub 2016-08-02 13:46:13 -06:00
docs Doc updates 2017-02-15 13:38:47 -07:00
errors Early return instead of nesting (code style) 2017-01-09 10:57:33 +00:00
filepathfilter filepathfilter: remove *bench subpackage 2016-12-27 15:06:15 -07:00
git Merge branch 'master' into track-patterns 2017-02-13 14:05:46 -07:00
lfs merge master 2017-02-17 10:14:00 -07:00
lfsapi remove lfsapi/schema pkg 2017-02-10 11:01:54 -07:00
localstorage fix problems running 'install' in a root dir 2016-11-30 13:56:22 -07:00
locking locking/client: reutrn a 'NotImplementedError' for HTTP 501s 2017-02-16 13:13:32 -07:00
progress progress: remove 'var _' decls 2017-02-17 17:33:58 -07:00
rpm rpm: build Git LFS in the right directory 2016-11-17 16:53:42 -07:00
script script/build: '--all' should not effect the DWARF tables 2017-02-14 09:24:07 -07:00
subprocess Fix for #1874 2017-01-19 09:37:26 -05:00
test Merge pull request #1955 from git-lfs/zero-bytes-forever 2017-02-17 10:30:06 -07:00
tools progress,tools,tq: implement ResetProgress on progress.BodyReader 2017-02-17 17:02:36 -07:00
tq progress,tools,tq: implement ResetProgress on progress.BodyReader 2017-02-17 17:02:36 -07:00
vendor/github.com vendor: Update gojsonschema pkg with new IO loaders 2017-02-13 11:35:45 -07:00
.gitattributes Enable autocrlf 2015-08-22 21:03:44 -04:00
.gitignore Use goversioninfo instead of windres to embed Windows resources 2016-12-15 12:27:47 +01:00
.mailmap Update .mailmap 2016-10-18 13:29:45 +09:00
.travis.yml all: build using Go 1.8 2017-02-16 14:49:32 -07:00
appveyor.yml all: build using Go 1.8 2017-02-16 14:49:32 -07:00
CHANGELOG.md release: 1.5.0 2016-11-17 15:11:14 -07:00
circle.yml test: add ntlm integration test 2017-01-06 15:19:10 -07:00
CODE-OF-CONDUCT.md embed the open code of conduct since the link is bad now 2016-05-06 05:50:14 -06:00
CONTRIBUTING.md config: bump version to '2.0-pre' so it's clear you're not on an official release 2017-02-09 10:05:17 -07:00
git-lfs.go Use goversioninfo instead of windres to embed Windows resources 2016-12-15 12:27:47 +01:00
glide.lock vendor: Update gojsonschema pkg with new IO loaders 2017-02-13 11:35:45 -07:00
glide.yaml vendor: Update gojsonschema pkg with new IO loaders 2017-02-13 11:35:45 -07:00
INSTALLING.md update other github/git-lfs references 2016-11-15 10:07:11 -07:00
LICENSE.md Add copyright date to license 2016-11-23 12:23:13 -05:00
Makefile update other github/git-lfs references 2016-11-15 10:07:11 -07:00
README.md README: Fix the build status table header order 2017-02-11 08:26:28 +01:00
ROADMAP.md update other github/git-lfs references 2016-11-15 10:07:11 -07:00
versioninfo.json Use goversioninfo instead of windres to embed Windows resources 2016-12-15 12:27:47 +01:00

Git Large File Storage

Linux macOS Windows
Linux build status macOS build status Windows build status

Git LFS is a command line extension and specification for managing large files with Git. The client is written in Go, with pre-compiled binaries available for Mac, Windows, Linux, and FreeBSD. Check out the Git LFS website for an overview of features.

Getting Started

You can install Git LFS in several different ways, depending on your setup and preferences.

Note: Git LFS requires Git v1.8.5 or higher.

Once installed, you need to setup the global Git hooks for Git LFS. This only needs to be done once per machine.

$ git lfs install

Now, it's time to add some large files to a repository. The first step is to specify file patterns to store with Git LFS. These file patterns are stored in .gitattributes.

$ mkdir large-repo
$ cd large-repo
$ git init

# Add all zip files through Git LFS
$ git lfs track "*.zip"

Now you're ready to push some commits:

$ git add .gitattributes
$ git add my.zip
$ git commit -m "add zip"

You can confirm that Git LFS is managing your zip file:

$ git lfs ls-files
my.zip

Once you've made your commits, push your files to the Git remote:

$ git push origin master
Sending my.zip
LFS: 12.58 MB / 12.58 MB  100.00 %
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 548 bytes | 0 bytes/s, done.
Total 5 (delta 1), reused 0 (delta 0)
To https://github.com/git-lfs/git-lfs-test
   67fcf6a..47b2002  master -> master

Need Help?

You can get help on specific commands directly:

$ git lfs help <subcommand>

The official documentation has command references and specifications for the tool. You can ask questions in the Git LFS chat room, or file a new issue. Be sure to include details about the problem so we can troubleshoot it.

  1. Include the output of git lfs env, which shows how your Git environment is setup.
  2. Include GIT_TRACE=1 in any bad Git commands to enable debug messages.
  3. If the output includes a message like Errors logged to /path/to/.git/lfs/objects/logs/*.log, throw the contents in the issue, or as a link to a Gist or paste site.

Contributing

See CONTRIBUTING.md for info on working on Git LFS and sending patches. Related projects are listed on the Implementations wiki page. You can also join the project's chat room.

Using LFS from other Go code

At the moment git-lfs is only focussed on the stability of its command line interface, and the server APIs. The contents of the source packages is subject to change. We therefore currently discourage other Go code from depending on the git-lfs packages directly; an API to be used by external Go code may be provided in future.

Core Team

These are the humans that form the Git LFS core team, which runs the project.

In alphabetical order:

@andyneff @rubyist @sinbad @technoweenie @ttaylorr