git config --edit
I was able to do this by using this command:
notepad .gitignore
And it would open the .gitignore file in Notepad.