mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Update git.sh
This commit is contained in:
committed by
GitHub
parent
ec428bc05f
commit
8088effe9f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user