HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git touch — Create new files and add them to the index. Part of `git-extras`. More information: <https://github.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommandfilesandnewgit touchcliadd

Problem

How to use the git touch command: Create new files and add them to the index. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-touch>.

Solution

git touch — Create new files and add them to the index. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-touch>.

Create new files and add them to the index:
git touch {{path/to/file1 path/to/file2 ...}}

Code Snippets

Create new files and add them to the index

git touch {{path/to/file1 path/to/file2 ...}}

Context

tldr-pages: common/git touch

Revisions (0)

No revisions yet.