Skip to content

Instantly share code, notes, and snippets.

@AnderssonPeter
Created October 31, 2018 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnderssonPeter/da5c9e87fab670cf04e95406e363a9da to your computer and use it in GitHub Desktop.
Save AnderssonPeter/da5c9e87fab670cf04e95406e363a9da to your computer and use it in GitHub Desktop.
Map git from windows to msys2
@ECHO 'Binding .gitconfig to current windows .gitconfig'
mklink C:\msys64\home\%username%\.gitconfig C:\Users\%username%\.gitconfig
@ECHO 'Binding .ssh to current windows .ssh'
mklink /D C:\msys64\home\%username%\.ssh C:\Users\%username%\.ssh
set "GIT_EDITOR=/usr/bin/nano.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment