Skip to content

Instantly share code, notes, and snippets.

@leviwilson
Created March 26, 2013 17:16
Show Gist options
  • Save leviwilson/5247250 to your computer and use it in GitHub Desktop.
Save leviwilson/5247250 to your computer and use it in GitHub Desktop.
Generates a batch file to do ssh-add so you do not have to continually enter your git password.
ssh-agent | sed -n 's/\(\b.\+\)=\(.*\); export.*/set \1\=\2/p' > %TEMP%\store_ssh.bat && echo ssh-add >> %TEMP%\store_ssh.bat
%TEMP%\\store_ssh.bat
@leviwilson
Copy link
Author

Assumes that you have installed Git for Windows and that you chose to add the linux commands to your PATH variable.

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