2015-04-11 06:35:32 +00:00
|
|
|
git-lfs-init(1) -- Ensure Git LFS is configured properly
|
|
|
|
========================================================
|
2014-06-02 22:14:53 +00:00
|
|
|
|
|
|
|
## SYNOPSIS
|
|
|
|
|
2015-10-20 17:39:01 +00:00
|
|
|
`git lfs init` [options]
|
2014-06-02 22:14:53 +00:00
|
|
|
|
|
|
|
## DESCRIPTION
|
|
|
|
|
2015-04-11 07:02:18 +00:00
|
|
|
Perform the following actions to ensure that Git LFS is setup properly:
|
2014-06-02 22:14:53 +00:00
|
|
|
|
2015-07-07 14:47:31 +00:00
|
|
|
* Set up the clean and smudge filters under the name "lfs" in the global Git
|
|
|
|
config.
|
2015-07-10 16:47:54 +00:00
|
|
|
* Install a pre-push hook to run git-lfs-pre-push(1) for the current repository,
|
|
|
|
if run from inside one.
|
2015-07-07 14:47:31 +00:00
|
|
|
|
|
|
|
## OPTIONS
|
|
|
|
|
|
|
|
Without any options, `git lfs init` will only setup the "lfs" smudge and clean
|
|
|
|
filters if they are not already set.
|
|
|
|
|
|
|
|
* `--force`:
|
|
|
|
Sets the "lfs" smudge and clean filters, overwriting existing values.
|
2015-10-20 17:39:01 +00:00
|
|
|
* `--local`:
|
|
|
|
Sets the "lfs" smudge and clean filters in the local repository's git
|
|
|
|
config, instead of the global git config.
|
|
|
|
* `--skip-smudge`:
|
|
|
|
Skips automatic downloading of objects on clone or pull. This requires a
|
|
|
|
manual "git lfs pull" every time a new commit is checked out on your
|
|
|
|
repository.
|
2014-06-02 22:14:53 +00:00
|
|
|
|
|
|
|
## SEE ALSO
|
|
|
|
|
2015-07-10 16:47:54 +00:00
|
|
|
git-lfs-uninit(1).
|
|
|
|
|
2015-03-19 19:30:55 +00:00
|
|
|
Part of the git-lfs(1) suite.
|