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 a new SSH Key

ssh-keygen -t rsa -b 4096 -C "_you[\[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/id\


This article was originally written on Google's Blogger platform and ported to Hashnode on 17 Sep 2022.