Problem with Pushing to Github

I keep getting this error when i try to push to github

“fatal: unable to access ‘MomohJoel/Coding-along · GitHub’: error setting certificate file: /usr/ssl/certs/ca-bundle.crt”

Please help me out on these.

Hi,
Never had this.
Why is it asking you for a certificate?
At Home I use the simplest cloning with HTTP and sometimes SSH.

Also the display of your repository is a bit unusual to me.
It says it’s empty but normaly in such case there is a page telling you how to add content to the repository

Try this if you did not do specific security changed in the repo.

in git bash/ any git capable terminal :

git clone https://github.com/MomohJoel/Coding-along.git

This should work.

As the repo is public I gave it a try.

user@PRODUCER MINGW64 /e/New folder
$ git clone https://github.com/MomohJoel/Coding-along.git
Cloning into 'Coding-along'...
warning: You appear to have cloned an empty repository.

user@PRODUCER MINGW64 /e/New folder
$ cd Coding-along/

user@PRODUCER MINGW64 /e/New folder/Coding-along (main)
$ git remote -v
origin  https://github.com/MomohJoel/Coding-along.git (fetch)
origin  https://github.com/MomohJoel/Coding-along.git (push)

So in that folder you should put source files. Then add to the staging area and then commit and push

Just try that then I suppose the folder is empty

touch README.md && git add -A && git commit -m "Add README.md file" && git push -u origin main

First try without the -u origin main because it should already be OK. add the rest is you’d meet any error.

Cheers.

Thanks very much. i already found a solution i noticed that there’s an issue with Git’s SSL certificate verification process,
And i disabed it using this " (http.sslVerify )" in my terminal

Thanks so much for you observation and conclusion.

Hi,

Unless there is a know issue in the version you are using, that rather sounds like a workaround. You are likely compromising your security which is not ideal.

I didn’t check then but I cloned your repo again and in the config I have these lines.

Maybe a safer solution would be reinstalling GIT or a way to properly configure SSL.

http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt

Cheers.

Thanks so much for putting me through. I am just new to the environment so any solution am provided with i abide with it and later on bearing the consequence, i will try out your solution and see how helpful it will also be.
Like i said Thanks Again, and i hope to further enlightment from you.