Windows - Git Bash - Quick Setup with Notepad++ as editor

My personal notes for when I need to help others to set up Git Bash on their machines with Notepad++ as the text editor.

1. Generate new SSH Key
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

2.Start ssh-agent
# start the ssh-agent in the background
eval "$(ssh-agent -s)"
Agent pid 59566

3. Add key to ssh-agent
$ ssh-add ~/.ssh/id_rsa

4. Edit ~/.bashrc:
eval `ssh-agent`
ssh-add

5. Set Notepad++ as your text editor
$ git config --global core.editor \
"'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

6. Add the key to either GitHub or BitBucket
$ clip < ~/.ssh/id_rsa.pub



Sources:
https://help.github.com/categories/ssh/
https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html
http://stackoverflow.com/questions/5727555/remember-password-git-bash-under-windows

No comments:

Post a Comment