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

git setup — Create a Git repository in a directory and commit all files. Part of `git-extras`. More information:

Submitted by: @import:tldr-pages··
0
Viewed 0 times
directorycreatecommandgit setupandclirepositorygit

Problem

How to use the git setup command: Create a Git repository in a directory and commit all files. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-setup>.

Solution

git setup — Create a Git repository in a directory and commit all files. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-setup>.

Create a Git repository in the current directory and commit all files:
git setup


Create a Git repository in a specific directory and commit all files:
git setup {{path/to/directory}}

Code Snippets

Create a Git repository in the current directory and commit all files

git setup

Create a Git repository in a specific directory and commit all files

git setup {{path/to/directory}}

Context

tldr-pages: common/git setup

Revisions (0)

No revisions yet.