Update git.sh

This commit is contained in:
David Heinemeier Hansson
2025-09-07 20:35:29 +02:00
committed by GitHub
parent ec428bc05f
commit 8088effe9f

View File

@@ -1,11 +1,8 @@
#!/bin/bash
# Create git config file under .config if it doesn't exist
# This helps to keep all our configs in one place
if [[ ! -f "~/.config/git/config" ]]; then
mkdir -p "~/.config/git"
touch "~/.config/git/config"
fi
# Ensure git settings live under ~/.config
mkdir -p ~/.config/git
touch ~/.config/git/config
# Set common git aliases
git config --global alias.co checkout