LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-setup

Initialize a repo and commit all existing files

TLDR

Create a new repo in the current directory with an initial commit
$ git setup
copy
Setup a repo in a specific directory
$ git setup [path/to/directory]
copy

SYNOPSIS

git setup [directory]

DESCRIPTION

git setup initializes a new Git repository and makes an initial commit with all existing files. Part of the git-extras package, it combines `git init`, `git add .`, and `git commit -m "Initial 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 directory).

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

Part of the git-extras package and must be installed separately. Commits all files immediately, so ensure a .gitignore file is in place first to avoid tracking unwanted files.

HISTORY

git setup is part of git-extras, a collection of useful Git utilities created by TJ Holowaychuk. It combines common initialization steps for new repositories.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid