I created a new repository called DirectorySocket, and from my project directory called DirectorySocket I did the following:
git add .
git remote add origin email@example.com:neilghosh/DirectorySocket.git
git commit -m "Initial version"
git push origin master
ERROR: Permission to neilghosh/DirectorySocket.git denied to
neilghosh/googly. fatal: The remote end hung up unexpectedly
Since it is your repository, check if the keys and token are setup properly as per the instructions provided by GitHub.
As a first step, see if
ssh -T firstname.lastname@example.org