ardevd/gitwrap
Fork: 9 Star: 77 (更新于 2024-10-31 07:24:14)
license: MIT
Language: C# .
Windows Wrapper for Linux git executable
最后发布版本: v0.2.1.0 ( 2018-11-13 21:55:50)
GitWrap
GitWrap is a Windows Wrapper for the Linux git executable.
Windows Subsystem for Linux is pretty awesome, but managing two separate git environment is not, especially if you use SSH keys. So, here is a little workaround that lets you call git from the WSL environment through a Windows executable.
GitWrap is experimental and can't be considered complete or reliable. It has been tested with Android Studio and seems to work pretty well when used with a compatible system.
NOTE: Please read through the list of known issues.
Requirements
- Windows Subsystem for Linux must be installed.
- Git should be installed in the Linux environment (WSL).
- Supports x64 variant of Windows only.
- To avoid most known issues, make sure your Windows 10 installation is fully up to date
Installation
Download the latest GitWrap release and place the executable anywhere you want. GitWrap is completely portable. Then configure your IDE's git executable path and make it point to GitWrap.exe. It should now be using git from your Linux Subsystem on Windows 10.
It should work with other IDE's that allow you to specify the path to the git executable but I've only tested and verified functionality with Android Studio.
To manually verify that GitWrap is working, open up a command prompt and navigate to the directory containing GitWrap.exe
GitWrap.exe --version
git version 1.9.1
If you get the expected response from the --version command you should be good to go.
Usage
If you are running WSL with a non-default wslpath you can update GitWrap to use your specified path.
GitWrap.exe --setWslPath /root/mnt
You can verify the setting with --getWslPath
Known Issues
- Using GitWrap manually as a command line tool is a bit cumbersome. Commiting files is pretty much impossible since GitWrap cant interface with external editors for commit messages etc. You should use GitWrap with IDE's and other applications that integrate with git or interact with git directly through WSL.
- Due to a bug in WSL affecting Windows 10 Fall Creators Update, GitWrap would not work when used with certain IDE's such as IDEA (including Android Studio). This has been resolved in Windows 10 build 17025 and any fully updated Windows 10 installation today should not encounter this issue.
- With the initial version of Windows Subsystem for Linux it was impossible to pipe output from a Linux command directly to a Windows application. Gitwrap worked around this by piping output to a temporary file and reading the output from there. Because of this, Windows 10 Creators Update is required for GitWrap version 0.2.0.0 and newer. If you're still on an older version of Windows 10 with WSL you can use GitWrap version 0.1.
If you encounter any other issues, bugs or limitations please report them!
最近版本更新:(数据更新于 2024-09-04 17:14:13)
2018-11-13 21:55:50 v0.2.1.0
2018-08-22 16:53:47 v0.2.0.1
2017-07-18 04:39:14 v0.2.0.0
2016-12-28 15:39:32 v0.1-alpha.4
2016-12-16 02:09:22 v0.1-alpha.3
2016-12-13 14:23:53 v0.1-alpha.2
2016-12-13 07:47:33 v0.1-alpha.1
主题(topics):
wsl
ardevd/gitwrap同语言 C#最近更新仓库
2024-11-04 20:01:02 Pik-4/HsMod
2024-11-03 23:57:50 jellyfin/jellyfin
2024-10-31 10:00:36 metatube-community/jellyfin-plugin-metatube
2024-10-30 03:58:07 AlchlcDvl/TownOfUsReworked
2024-10-26 07:18:02 Azure/azure-sdk-for-net
2024-10-23 06:18:57 PowerShell/PowerShell