Use better git defaults (#1601)

This commit is contained in:
Zacharias Knudsen
2025-10-27 09:42:04 +01:00
committed by GitHub
parent e0f9beda7a
commit e4f2cc2175
2 changed files with 28 additions and 12 deletions

View File

@@ -1,15 +1,3 @@
# Ensure git settings live under ~/.config
mkdir -p ~/.config/git
touch ~/.config/git/config
# Set common git aliases
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global pull.rebase true
git config --global init.defaultBranch master
# Set identification from install inputs
if [[ -n "${OMARCHY_USER_NAME//[[:space:]]/}" ]]; then
git config --global user.name "$OMARCHY_USER_NAME"