-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do you install wslgit
?
#140
Comments
Depending on your use case, an installation might not be necessary. If you just want to use git from the command line, and already have the binary in some directory on your The Your error seems to indicate that the Does this help you? However, you wrote that |
@andy-5 I'm using Fork's latest WSL build so I need I scripted this:
Would you be open to a PR to the README that steps through this setup? |
Sure, any improvements are welcome.
…On Fri, Oct 20, 2023 at 12:42 PM Tao ***@***.***> wrote:
@andy-5 <https://github.com/andy-5> I'm using Fork's latest WSL build so
I need install.bat to run successfully. I pieced together how to get this
to work based on other issues. Basically, it comes down to picking the
wslgit binary over the wslgit.zip on the releases page. It's the zipfile
that contains the directory structure install.bat expects. That wasn't
clear to me.
I scripted this:
# Download wslgit.zip using Invoke-WebRequest
sudo Invoke-WebRequest -Uri "https://github.com/andy-5/wslgit/releases/download/v1.2.0/wslgit.zip" -OutFile "C:\wslgit.zip"
# Extract wslgit.zip to C:\
sudo Expand-Archive -Path "C:\wslgit.zip" -DestinationPath "C:\"
# Add C:\wslgit\cmd to the system PATH
sudo [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\wslgit\cmd", "Machine")
# Optionally, if you want to clean up and remove the downloaded zip after extraction:
sudo sudo Remove-Item -Path "C:\wslgit.zip"
sudo C:\wslgit\install.bat
Would you be open to a PR to the README that steps through this setup?
—
Reply to this email directly, view it on GitHub
<#140 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAS46ATXRUOQCDYV6FS7LXDYAJIRJAVCNFSM6AAAAAA6DVADKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSGUYDONZXG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Was also quite confused about how to set this up. I see mention of an |
It isn't clear from the README.
I installed
wslgit
usingscoop install wslgit
. I could have also fetched the release binary from GitHub and put it in my Windows PATH (<- this bit was assumed since it isn't stated in the docs).Whether I've installed it with scoop or manually fetched the binary, at this point I'm told to run
install.bat
but no matter where I source it, the response from the script isgit.exe
is on my PATH and invokable.I'm sure everything is obvious but the README assumes a lot of knowledge here. I'd appreciate some clarity!
The text was updated successfully, but these errors were encountered: