Personal Claude Code configuration (hooks, commands, agents, settings).
Note: This assumes your ~/.claude directory already exists (created by Claude Code on first run).
git clone https://github.com/YoniChechik/claude-code-config.git /tmp/claude-temp
mv /tmp/claude-temp/.git ~/.claude/ && cd ~/.claude && git reset --hard HEAD
rm -rf /tmp/claude-tempThis approach "git-enables" your existing Claude Code config directory instead of replacing it:
- Claude Code auto-creates
~/.claude- On first run, Claude Code creates this directory with default configuration files - Preserves directory structure - Moving only the
.gitfolder keeps the existing directory intact, avoiding disruption to active sessions - Non-destructive -
git reset --hard HEADoverwrites files with repo versions while keeping the directory structure and any uncommitted local changes discoverable - Alternative would be destructive - Doing
rm -rf ~/.claude && git clone ...would lose active sessions and make clean updates harder
This makes your config trackable and syncable across machines while keeping Claude Code running smoothly.
# Add to ~/.bashrc or ~/.zshrc
alias cc="claude"