I am having problem accessing github repository through Git Bash.
2 days ago I was able to push/pull the repositories. Then
1) I created an account on gitlab.com
2) I generated ssh key on my local pc following GitLab and SSH keys using git bash on windows
3) After this I did not create/pull/push any repository on gitlab.
Today I make few changes in a code (that is deployed on github), when I try to push that code I get following error
fatal: unable to access 'https://github.com/junaidbinsarfraz/repo.git/': error setting certificate verify locations:
CAfile: E:/Softwares/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
CApath: none
There is no ssl folder in libexec
Also no file/folder changed in Git folder since Jan 2017
It seems like git-bash issue, not sure. Can anyone help ?
First, creating ssh keys won't help for an HTTPS url.
Keep those keys, but if you want to use them, you would need to put existing ssh keys to your github account then
cd /path/to/your/repo
git remote set-url origin [email protected]:junaidbinsarfraz/repo.git
git push
Second, regarding the cert error, try to push from a simple CMD, using a simplified PATH as I do here, with said PATH referencing the very latest Git for Windows.
For that, uncompress PortableGit-2.16.1-64-bit.7z.exe
anywhere you want.