{"id":13342535,"url":"https://github.com/roy-n-roy/WslGitSelector","last_synced_at":"2025-03-12T01:37:34.186Z","repository":{"id":46182935,"uuid":"264247768","full_name":"roy-n-roy/WslGitSelector","owner":"roy-n-roy","description":"Switch git instances in the git repository on Windows and the git repository on WSL.","archived":false,"fork":false,"pushed_at":"2023-11-14T23:39:57.000Z","size":253,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-24T12:12:53.230Z","etag":null,"topics":["git","wsl","wsl2"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roy-n-roy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-05-15T16:46:03.000Z","updated_at":"2021-07-12T02:09:24.000Z","dependencies_parsed_at":"2024-10-24T05:40:42.541Z","dependency_job_id":null,"html_url":"https://github.com/roy-n-roy/WslGitSelector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roy-n-roy%2FWslGitSelector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roy-n-roy%2FWslGitSelector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roy-n-roy%2FWslGitSelector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roy-n-roy%2FWslGitSelector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roy-n-roy","download_url":"https://codeload.github.com/roy-n-roy/WslGitSelector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243141286,"owners_count":20242815,"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":["git","wsl","wsl2"],"created_at":"2024-07-29T19:29:30.554Z","updated_at":"2025-03-12T01:37:33.797Z","avatar_url":"https://github.com/roy-n-roy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n# WslGitSelector\r\n\r\n![demo](docs/images/demo.gif)  \r\n\r\nWindows上のGitリポジトリ と WSL(Linux)上のリポジトリで、Gitインスタンスを自動的に切り替えて実行します。  \r\n渡された引数は、そのままGit for Windows/wslgitへ渡されます。\r\n\r\n## Require\r\n\r\n* [Windows Subsystem for Linux(WSL)](https://docs.microsoft.com/ja-jp/windows/wsl/install-win10)\r\n* [Git for Windows](https://gitforwindows.org/)\r\n\r\n## Install\r\n\r\n1. [Releases](releases/latest)から `WslGitSelector-1.0.0.zip` をダウンロードし、任意のフォルダに展開します。  \r\n1. [Releases - andy-5/wslgit](https://github.com/andy-5/wslgit/releases)から、`wslgit.exe`をダウンロードし、`WslGitSelector/bin/`に保存します。  \r\n1. 必要に応じて、`git.exe`をコピーして `bash.exe`, `sh.exe` にリネームします。\r\n\r\nインストール後のフォルダ構成は以下のようになります。\r\n\r\n```\r\nWslGitSelector\\\r\n |- bin\\\r\n |   `- wslgit.exe\r\n |- git.exe\r\n |- bash.exe (optional)\r\n `- sh.exe (optional)\r\n```\r\n\r\n## Usage\r\n\r\n展開したフォルダへPATHを通します。\r\nまたは、GUI GitクライアントでGItインスタンスに指定します。\r\n\r\nコマンドを呼び出すフォルダによって、デフォルトの設定では以下のような動作をします。\r\n\r\n* WSL内(`\\\\wsl$` 以下のパス)のフォルダの場合  \r\n\t=\u003e `wslgit.exe`を実行  \r\n* その他(Cドライブなど)の場合  \r\n\t=\u003e Git for windowsを実行\r\n\r\n## Why switch git instances?\r\n\r\n主にファイルシステムの扱いの違いから、gitを切り替えて使用しています。  \r\n\r\n* Git for Windowsでは、WSL内のパーミッション情報を扱えない  \r\n* WSLで実行されるgitでは、Windowsのシンボリックリンクを扱えない  \r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froy-n-roy%2FWslGitSelector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froy-n-roy%2FWslGitSelector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froy-n-roy%2FWslGitSelector/lists"}