{"name":"CLAUDE_CODE_DIR_SYNC_GIT","slug":"claude-code-dir-sync-git","family":"env","title":"Environment variables","noun":"environment variable","description":"You can set CLAUDE_CODE_DIR_SYNC_GIT to pick a git-based engine for syncing your directory to a cloud session.","description_source":"entry","described_by":{"version":"2.1.239","anchor":"claude-code-dir-sync-git-selects-a-git-based-engine-for-clou"},"presence":{"first_seen":"2.1.239","removed_in":"2.1.285","in_current_build":false,"newest_mined":"2.1.308","builds":37,"mined_builds":149,"first_cited":{"version":"2.1.261","released_at":"2026-09-04 17:49:34","spans":1}},"aliases":[],"entries":[{"version":"2.1.285","anchor":"directory-sync-dir-sync-feature-removed","heading":"Directory sync for cloud sessions and its environment variables removed","line":"The directory-sync machinery for cloud sessions is gone, and its `CLAUDE_CODE_DIR_SYNC_*` and `CLAUDE_CODE_DISABLE_DIR_SYNC` variables no longer do anything","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.261","anchor":"new-claude-code-dir-sync-git-gated-helper-for-directory-git","heading":"New CLAUDE_CODE_DIR_SYNC_GIT-gated helper for directory git-sync","line":"An internal helper for directory git-sync is gated behind an env var whose purpose isn't stated.","released_at":"2026-09-04 17:49:34","reason":"found in this entry's text, named in this entry"},{"version":"2.1.246","anchor":"cloud-directory-sync-is-now-git-only-plus-a-new-mode-for-pla","heading":"Cloud directory sync is now git-only, plus a new mode for plain folders","line":"Cloud directory sync now only does git; the per-file and archive engines are gone.","released_at":"2026-08-25 19:17:34","reason":"found in this entry's text"},{"version":"2.1.242","anchor":"cloud-directory-sync-gains-git-and-tar-archive-engines-besid","heading":"Cloud directory sync gains git and tar-archive engines beside the per-file lane","line":"Cloud file sync gains git-bundle and tar-archive modes, but you still sync file by file.","released_at":"2026-08-24 19:16:14","reason":"found in this entry's text"},{"version":"2.1.242","anchor":"git-aware-directory-sync-for-cloud-sessions-off-unless-an-en","heading":"Git-aware directory sync for cloud sessions, off unless an env var is set","line":"A git sync engine keeps a cloud container's checkout in step with yours, off unless an env var is set.","released_at":"2026-08-24 19:16:14","reason":"named in this entry, found in this entry's text"},{"version":"2.1.239","anchor":"claude-code-dir-sync-git-selects-a-git-based-engine-for-clou","heading":"CLAUDE_CODE_DIR_SYNC_GIT selects a git-based engine for cloud file sync","line":"You can set CLAUDE_CODE_DIR_SYNC_GIT to pick a git-based engine for syncing your directory to a cloud session.","released_at":"2026-08-21 17:18:54","reason":"named in this entry, found in this entry's text"},{"version":"2.1.239","anchor":"directory-sync-anchoring-can-be-switched-off-plus-seven-dir-","heading":"Directory-sync anchoring can be switched off, plus seven dir-sync variables now stripped from child processes","line":"CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes.","released_at":"2026-08-21 17:18:54","reason":"named in this entry, found in this entry's text"},{"version":"2.1.239","anchor":"sync-and-hook-forwarding-switches-now-survive-into-remote-se","heading":"Sync and hook-forwarding switches now survive into remote sessions","line":"Seven more environment variables you export locally now carry into remote and worker processes.","released_at":"2026-08-21 17:18:54","reason":"named in this entry, found in this entry's text"}],"entries_total":8,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_DIR_SYNC_ARCHIVE","slug":"claude-code-dir-sync-archive","description":"CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes."},{"name":"CLAUDE_CODE_DIR_SYNC_CHAIN","slug":"claude-code-dir-sync-chain","description":"A new 'chained' directory-sync mode exists behind an undocumented CLAUDE_CODE_DIR_SYNC_CHAIN env var"},{"name":"CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING","slug":"claude-code-dir-sync-disable-anchoring","description":"Cloud file sync writes through directory handles so a swapped symlink can't redirect it, and says when that's unavailable."},{"name":"CLAUDE_CODE_DIR_SYNC_ENGINE","slug":"claude-code-dir-sync-engine","description":"Set CLAUDE_CODE_LEGACY_BUNDLE to true to go back to the old single-file build shape."},{"name":"CLAUDE_CODE_DIR_SYNC_FFWD","slug":"claude-code-dir-sync-ffwd","description":"Set CLAUDE_CODE_LEGACY_BUNDLE to true to go back to the old single-file build shape."},{"name":"CLAUDE_CODE_DIR_SYNC_OVERLAY","slug":"claude-code-dir-sync-overlay","description":"CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes."},{"name":"CLAUDE_CODE_DIR_SYNC_STREAM","slug":"claude-code-dir-sync-stream","description":"More environment variables get carried into remote sessions; none are set by default."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-dir-sync-git","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}