{"id":14069357,"url":"https://github.com/atusy/git-worksync","last_synced_at":"2025-04-11T00:46:05.789Z","repository":{"id":47082405,"uuid":"405960780","full_name":"atusy/git-worksync","owner":"atusy","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-04T12:36:08.000Z","size":24,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T00:46:01.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atusy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-13T12:18:36.000Z","updated_at":"2024-07-30T21:27:30.000Z","dependencies_parsed_at":"2022-09-17T05:41:10.463Z","dependency_job_id":null,"html_url":"https://github.com/atusy/git-worksync","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atusy%2Fgit-worksync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atusy%2Fgit-worksync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atusy%2Fgit-worksync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atusy%2Fgit-worksync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atusy","download_url":"https://codeload.github.com/atusy/git-worksync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322605,"owners_count":21084336,"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":[],"created_at":"2024-08-13T07:06:53.503Z","updated_at":"2025-04-11T00:46:05.770Z","avatar_url":"https://github.com/atusy.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# git-worksync\n\nExtend `git worktree add` by syncing untracked and ignored resouces.\n\n## Install\n\n1. Install dependencies: [Git](https://git-scm.com/) and optionally [mikefarah/yq](https://github.com/mikefarah/yq). \n1. Download [git-worksync](git-worksync) to one of your path (e.g., `~/.local/bin`)\n1. Let the file be executable\n\nFor example,\n\n``` bash\nwget -O \"$HOME/.local/bin/git-worksync\" https://raw.githubusercontent.com/atusy/git-worksync/main/git-worksync\nchmod +x \"$HOME/.local/bin/git-worksync\"\n```\n\n## Getting started\n\n\n`git worksync` extends `git worktree add`, and remains compatibility at the same time.\n\nBy default, `git worksync` creates hard links for the untracked and symbolic links for the ignored.\nThis design has chosen for the following reasons.\n\n- Hard links are suitable for `git add \u003cuntracked paths\u003e`\n- Symbolic links are suitable for synchronizing ignored directories (e.g., .venv/, data/, ...) after adding the new worktree.\n\nThe behavior can be tweaked by command line options or by a YAML file (require [mikefarah/yq](https://github.com/mikefarah/yq)).\nThe deafult path for the YAML file is `.worksync.yml` at the root of repository.\nHowever, it can also be changed by the `WORKSYNC_CONFIG` evironmental variable or by the `--config=\u003cpath\u003e` option.\n\nDetails are available from `git worksync --help`.\n\n### Examples\n\n```bash\n# Sync the untracked by hard links, and the ignroed by symbolic links\ngit worksync \u003cpath\u003e [\u003ccommit-ish\u003e]\n\n# Sync the ignored by hard links\ngit worksync \u003cpath\u003e [\u003ccommit-ish\u003e] --untracked=symbolic-link\n\n# Sync the ignored by hard links according to the YAML file\necho \"ignored: hard-link\" \u003e \"$(git rev-parse --show-toplevel)/.worksync.yml\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatusy%2Fgit-worksync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatusy%2Fgit-worksync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatusy%2Fgit-worksync/lists"}