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 "[email protected]"

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`

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/


No comments:

Post a Comment