LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-sh-setup

Common shell library for Git scripts

TLDR

Source for git scripts
$ . "$(git --exec-path)/git-sh-setup"
copy

SYNOPSIS

git-sh-setup

DESCRIPTION

git-sh-setup is an internal shell library that provides common functions for Git scripts. It includes utilities for repository validation, directory navigation, color output, and error handling.Key functions include `requireworktree`, `cdtotoplevel`, `die`, and `git_pager`. Scripts source this library to get consistent behavior across Git shell commands.

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

Internal library, not a command. Must be sourced, not executed. Used by git shell scripts.

HISTORY

git-sh-setup is part of Git's internal infrastructure, providing shared functionality for shell-based git commands and hooks.

SEE ALSO

RESOURCES

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