Change the location of the ~ directory in a Windows install of Git Bash

I don’t understand, why you don’t want to set the $HOME environment variable since that solves exactly what you’re asking for. cd ~ doesn’t mean change to the root directory, but change to the user’s home directory, which is set by the $HOME environment variable. Quick’n’dirty solution Edit C:\Program Files (x86)\Git\etc\profile and set $HOME variable … Read more

Clone works, remote push doesn’t. Remote repository over copssh

stupid fix (this changed /SSH/home/rvc/.gitconfig): rvc@RVC-DESKTOP /c/code/myapp (master) $ git config –global remote.origin.receivepack “git receive-pack” rvc@RVC-DESKTOP /c/code/myapp (master) $ git push Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (2/2), 246 bytes, done. Total 2 (delta 0), reused 0 (delta 0) To ssh://rvc@192.168.1.65:5858/SSH/home/rvc/myapp.git 680f32e..2da0df1 … Read more

github: No supported authentication methods available

You can create a file named “.profile” in your home directory, for me that’s C:\Users\[user] Inside that file, put the following line of code: GIT_SSH=”/usr/bin/ssh.exe” This will set the GIT_SSH environment variable to use the ssh client included with git. The .profile script gets executed when you start your Git Bash command line. Edit: This … Read more

Fix msysGit Portable $HOME location

The command used to launch git bash is: C:\Windows\SysWOW64\cmd.exe /c “”C:\Prog\Git\1.7.1\bin\sh.exe” –login -i” I just tried the following in a DOS session: C:\>C:\Windows\SysWOW64\cmd.exe /c “”C:\Prog\Git\1.7.1\bin\sh.exe” –login -i” VonC@XXX /c/ $ echo $HOME /c/Users/VonC By default, $HOME$%HOMEPATH%, but if I force %HOME%: set HOME=/another/path and then launch the same bash session: C:\>C:\Windows\SysWOW64\cmd.exe /c “”C:\Prog\Git\1.7.1\bin\sh.exe” –login -i” … Read more

Msysgit bash is horrendously slow in Windows 7

You can significantly speed up Git on Windows by running three commands to set some config options: git config –global core.preloadindex true git config –global core.fscache true git config –global gc.auto 256 Notes: core.preloadindex does filesystem operations in parallel to hide latency (update: enabled by default in git 2.1) core.fscache fixes UAC issues so you … Read more

use Winmerge inside of Git to file diff

Update June 2015, 6 years later: As detailed in “git mergetool winmerge”, a simple git config diff.tool winmerge will be enough. Git 2.5+ (Q2, 2015) is now aware of Winmerge as a diff or merge tool! Original answer (2009-2012) (msysgit, 1.6.5, DOS session) The first part (using winmerge) is described in “How do I view … Read more

Git on Windows: How do you set up a mergetool?

To follow-up on Charles Bailey’s answer, here’s my git setup that’s using p4merge (free cross-platform 3way merge tool); tested on msys Git (Windows) install: git config –global merge.tool p4merge git config –global mergetool.p4merge.cmd ‘p4merge.exe \”$BASE\” \”$LOCAL\” \”$REMOTE\” \”$MERGED\”‘ or, from a windows cmd.exe shell, the second line becomes : git config –global mergetool.p4merge.cmd “p4merge.exe \”$BASE\” … Read more

tech