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 #!/bin/bash
# Create git config file under .config if it doesn't exist # Ensure git settings live under ~/.config
# This helps to keep all our configs in one place mkdir -p ~/.config/git
if [[ ! -f "~/.config/git/config" ]]; then touch ~/.config/git/config
mkdir -p "~/.config/git"
touch "~/.config/git/config"
fi
# Set common git aliases # Set common git aliases
git config --global alias.co checkout git config --global alias.co checkout