lfs

package
v2.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package lfs git-lfs - Work with large files in Git repositories.

SYNOPSIS

Reference: https://git-lfs.github.com/

git lfs command [args]

DESCRIPTION

Git LFS is a system for managing and versioning large files in association with a Git repository. Instead of storing the large files within the Git repository as blobs, Git LFS stores special "pointer files" in the repository, while storing the actual file contents on a Git LFS server. The contents of the large file are downloaded automatically when needed, for example when a Git branch containing the large file is checked out.

Git LFS works by using a "smudge" filter to look up the large file contents based on the pointer file, and a "clean" filter to create a new version of the pointer file when the large file's contents change. It also uses a pre-push hook to upload the large file contents to the Git LFS server whenever a commit containing a new large file version is about to be pushed to the corresponding Git server.

COMMANDS

Like Git, Git LFS commands are separated into high level ("porcelain") commands and low level ("plumb- ing") commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkout

func Checkout(object string) types.Option

Populate working copy with real content from Git LFS files. usage: git lfs checkout

func Clean

func Clean(object string) types.Option

Git clean filter that converts large files to pointers. usage: git lfs clean

func Dedup

func Dedup(object string) types.Option

De-duplicate Git LFS files. usage: git lfs dedup

func Env

func Env(object string) types.Option

Display the Git LFS environment. usage: git lfs env

func Ext

func Ext(object string) types.Option

Display Git LFS extension details. usage: git lfs ext

func Fetch

func Fetch(object string) types.Option

Download Git LFS files from a remote. usage: git lfs fetch

func Fsck

func Fsck(object string) types.Option

Check Git LFS files for consistency. usage: git lfs fsck

func Install

func Install(object string) types.Option

Install Git LFS configuration. usage: git lfs install

func Lock

func Lock(object string) types.Option

Set a file as "locked" on the Git LFS server. usage: git lfs lock

func Locks

func Locks(object string) types.Option

List currently "locked" files from the Git LFS server. usage: git lfs locks

func Logs

func Logs(object string) types.Option

Show errors from the Git LFS command. usage: git lfs logs

func LsFiles

func LsFiles(object string) types.Option

Show information about Git LFS files in the index and working tree. usage: git lfs ls-files

func Migrate

func Migrate(object string) types.Option

Migrate history to or from Git LFS usage: git lfs migrate

func Pointer

func Pointer(object string) types.Option

Build and compare pointers. usage: git lfs pointer

func PostCheckout

func PostCheckout(object string) types.Option

Git post-checkout hook implementation. usage: git lfs post-checkout

func PostCommit

func PostCommit(object string) types.Option

Git post-commit hook implementation. usage: git lfs post-commit

func PostMerge

func PostMerge(object string) types.Option

Git post-merge hook implementation. usage: git lfs post-merge

func PreMerge

func PreMerge(object string) types.Option

Git pre-merge hook implementation. usage: git lfs pre-merge

func PrePush

func PrePush(object string) types.Option

Git pre-push hook implementation. usage: git lfs pre-push

func Process

func Process(object string) types.Option

Git process filter that converts between large files and pointers. usage: git lfs process

func Prune

func Prune(object string) types.Option

Delete old Git LFS files from local storage usage: git lfs prune

func Pull

func Pull(object string) types.Option

Fetch Git LFS changes from the remote & checkout any required working tree files. usage: git lfs pull

func Push

func Push(object string) types.Option

Push queued large files to the Git LFS endpoint. usage: git lfs push

func Smudge

func Smudge(object string) types.Option

Git smudge filter that converts pointer in blobs to the actual content. usage: git lfs smudge

func StandaloneFile

func StandaloneFile(object string) types.Option

Git LFS standalone transfer adapter for file URLs (local paths). usage: git lfs standalone-file

func Status

func Status(object string) types.Option

Show the status of Git LFS files in the working tree. usage: git lfs status

func Track

func Track(object string) types.Option

View or add Git LFS paths to Git attributes. usage: git lfs track

func Uninstall

func Uninstall(object string) types.Option

Uninstall Git LFS by removing hooks and smudge/clean filter configuration. usage: git lfs uninstall

func Unlock

func Unlock(object string) types.Option

Remove "locked" setting for a file on the Git LFS server. usage: git lfs unlock

func Untrack

func Untrack(object string) types.Option

Remove Git LFS paths from Git Attributes. usage: git lfs untrack

func Update

func Update(object string) types.Option

Update Git hooks for the current Git repository. usage: git lfs update

func Version

func Version(object string) types.Option

Report the version number. usage: git lfs version

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL