Skip to content

Instantly share code, notes, and snippets.

@dgw
Created August 18, 2010 03:25
Show Gist options
  • Save dgw/533267 to your computer and use it in GitHub Desktop.
Save dgw/533267 to your computer and use it in GitHub Desktop.
@echo off
rem Copyright (C): 2010 Voyagerfan5761
rem http://technobabbl.es/
set USERPROFILE=%~dp0
set HOMEDRIVE=%~d0
set HOMEPATH=%~p0
set HOME=%~dp0
set HISTFILE=%USERPROFILE%.bash_history
rem set BASHRC=%USERPROFILE%.bashrc
git-bash.bat
@r-a-y
Copy link

r-a-y commented Jul 31, 2011

Me again! Just wanted to update you on my progress.

Looks like the script by Prabir was just using a simple tweak in /etc/profile.
So I mirrored a few of his changes into /etc/profile et voila! SVN works fine.

If you're interested, another dev (@markashleybell) figured it out as well and detailed it on his blog:
http://markashleybell.com/articles/portable-git-windows-setting-home-environment-variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment