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\]](https://blog.emmti.com/cdn-cgi/l/email-protection)_"
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
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
This article was originally written on Google's Blogger platform and ported to Hashnode on 17 Sep 2022.