LinuxCommandLibrary

git-lock

Lock a file in a Git repository from being modified by a commit.

TLDR

Disable the ability to commit changes of a local file

$ git lock [path/to/file]
copy

SYNOPSIS

git-lock <filename>

DESCRIPTION

Lock local files from version control.

OPTIONS

<filename>

The name of the filename.

EXAMPLES

$ git lock config/database.yml

REPORTING BUGS

<https://github.com/tj/git-extras/issues>

SEE ALSO

<https://github.com/tj/git-extras>

AUTHOR

Written by Julio Napuri <julionc@gmail.com>

Copied to clipboard