LinuxCommandLibrary

git-touch

Create new files and add them to the index.

TLDR

Create new files and add them to the index

$ git touch [path/to/file1 path/to/file2 ...]
copy

SYNOPSIS

git-touch <filename>

DESCRIPTION

Call touch on the given file and add it to the current index. Used one-step creating new files.

OPTIONS

<filename>

File to be touched.

EXAMPLES

$ git touch Makefile

REPORTING BUGS

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

SEE ALSO

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

AUTHOR

Written by Alex McHale <alexmchale@gmail.com>

Copied to clipboard