{"id":27553720,"url":"https://github.com/divitmittal/sync-windows","last_synced_at":"2026-03-11T17:03:00.356Z","repository":{"id":219374700,"uuid":"748897221","full_name":"DivitMittal/sync-windows","owner":"DivitMittal","description":"~/.* (Windows)","archived":false,"fork":false,"pushed_at":"2025-05-30T23:29:26.000Z","size":11298,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T06:32:33.575Z","etag":null,"topics":["dotfiles","dotfiles-windows","flake-parts","nix","powershell","windows-10","windows-11"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DivitMittal.png","metadata":{"files":{"readme":".github/README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-27T01:23:45.000Z","updated_at":"2025-05-30T23:29:15.000Z","dependencies_parsed_at":"2024-03-02T21:23:50.821Z","dependency_job_id":"2aa80878-3620-4b26-9ac6-ede936fd9be0","html_url":"https://github.com/DivitMittal/sync-windows","commit_stats":null,"previous_names":["divitmittal/sync-windows"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DivitMittal/sync-windows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivitMittal%2Fsync-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivitMittal%2Fsync-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivitMittal%2Fsync-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivitMittal%2Fsync-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DivitMittal","download_url":"https://codeload.github.com/DivitMittal/sync-windows/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivitMittal%2Fsync-windows/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262417903,"owners_count":23307944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotfiles","dotfiles-windows","flake-parts","nix","powershell","windows-10","windows-11"],"created_at":"2025-04-19T12:53:19.808Z","updated_at":"2026-03-11T17:02:55.329Z","avatar_url":"https://github.com/DivitMittal.png","language":"CSS","readme":"\u003ch1 align='center'\u003e sync-windows \u003c/h1\u003e\n\n![dotfiles](./../assets/dotfiles.svg) ![windows](./../assets/windows.png)\n\nThese are dotfiles, preference files, configuration files, shell scripts, etc., tailored for a Microsoft Windows environment.\n\n## Dotfile Synchronization with `sw`\n\nThis repository utilizes a clever technique to manage dotfiles directly within your user profile directory (`$env:userprofile`) using Git. The core of this system is the `sw` (sync-windows) alias defined in `Documents/Powershell/Profile.ps1`.\n\n**How it works:**\n\nThe `sw` command is an alias for a PowerShell function that invokes `git` with specific parameters:\n\n- `--git-dir=$env:userprofile/sync-windows/`: Specifies that the Git repository data (the `.git` directory, essentially) resides within this project's directory located directly under your user profile.\n- `--work-tree=$env:userprofile`: Sets the working directory for Git to your entire user profile directory.\n\nThis means you can run standard Git commands using `sw` instead of `git` to track, manage, and synchronize any file within your user profile directory using this repository.\n\n**Example Usage:**\n\n```powershell\n# Check the status of tracked files in your home directory\nsw status\n\n# Add a configuration file to be tracked\nsw add .config/my-app/settings.json\n\n# Commit changes\nsw commit -m \"Update my-app settings\"\n\n# Push changes to the remote repository\nsw push\n```\n\nThis approach allows for seamless version control and synchronization of my Windows environment configuration.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivitmittal%2Fsync-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivitmittal%2Fsync-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivitmittal%2Fsync-windows/lists"}