Back Up and Share Claude Code Settings, Rules & Agents with Git
Published 13/09/2026
Description
How do you back up, sync, and share Claude Code configuration files across multiple Windows devices, projects, or team members? Contents: 0:00 - Introduction 0:18 - Description 1:48 - .local Directory 2:05 - .claude Directory 2:46 - Git Repo 3:31 - Sync Script 6:36 - Result 6:58 - Conclusion Claude Code stores its executable and its configuration files in separate locations. The configuration folder can contain important files such as settings.json, CLAUDE.md, rules, agents, skills, workflows, and other custom AI coding configuration. Keeping these files only in a local user profile can become difficult when you: Work from both a desktop and laptop Need a backup of your Claude Code configuration Want to share rules or workflows with colleagues Maintain common AI coding standards across a department Use multiple projects but do not want to manually maintain the same configuration everywhere Want version history and change tracking for your AI coding setup This allows Claude Code to keep reading files from its normal local configuration path, while the real files are version-controlled inside a Git repository. What you will learn Where Claude Code stores its executable and configuration files on Windows The difference between the local application directory and the Claude configuration directory Which Claude Code files can be stored in Git How to create an Azure DevOps project and repository for shared Claude Code configuration How to add CLAUDE.md, settings.json, rules, agents, skills, and workflows to a repository Why a .gitignore file is still important How to create a PowerShell sync script How to locate the current user profile safely from PowerShell How to replace existing local configuration files with symbolic links The difference between Windows junctions, hard links, and symbolic links Why hard links do not work when the Git repository and user profile are on different drives Why sy