sublime-text-git
sublime-text-git copied to clipboard
Unable to Push to git in Sublime but able with the command line - Windows 7
I tried every single possible solution on this thread Push not working #98 but nothing worked. I am using Windows 7 and Sublime Text 3 with the Git plugin installed, using SSH and not HTTPS. The issue occurs in GitHub desktop as well BUT when I use the command line everything works smoothly!
Steps to reproduce: After cloning the project, In Sublime (ctrl+shift+p):
- Git Add All
- Git Commit
- Git Push When I try to push I get the following error in Sublime:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
In GitHub Desktop it reads:
Authentication failed. You may not have permission to access the repository. Open options and verify that you're signed in with an account that has permission to access this repository.
Troubleshoot:
git remote -v
#origin [email protected]:barak-11/Full.git (fetch)
#origin [email protected]:barak-11/Full.git (push)
git --version
#git version 2.14.1.windows.1
You have to add ssh key on your repository for remote config.
One solution: Delete old keys, create one without passphrase (here)
So I'm running into this issue as well. Running Windows 10, Sublime Text 3, and Windows GIT. I found that I can push without issues via CMD or Bash (Ubuntu on Windows).
However it'll fail everytime with Sublime. HOWEVER, when I used https to clone the repo as opposed to SSH, I am able to push within sublime without issue.
I also want to note that on a separate Windows 10 computer (where I have Cygwin Installed, not Windows Git installed), I am able to push via SSH in Sublime Text 3.
So now I need to figure out how it can be possible without Cygwin and just relying on Windows Bash instead, cause I would definitely like to use SSH for the push instead of https.