LinuxCommandLibrary

git-setup

Initialize a repo and commit all existing files

TLDR

Create new repo with files

$ git setup
copy
Setup with initial commit
$ git setup [directory]
copy

SYNOPSIS

git setup [directory]

DESCRIPTION

git setup initializes a new repository and makes an initial commit with all existing files. Part of git-extras, it combines `git init`, `git add`, and `git commit` into a single command.
This is useful for quickly turning an existing directory of files into a Git repository with a clean starting snapshot.

PARAMETERS

DIRECTORY

Directory to set up (default: current).
--help
Display help information.

CAVEATS

Part of git-extras package. Commits all files immediately. Consider .gitignore first.

HISTORY

git setup is part of git-extras, combining common initialization steps for new repositories.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community