I cannot upload my iOS project to github - github

Whenever I try to upload the project to github the following error is coming.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Please somebody help me. I am new to to github. I cannot understand what is wrong

You are likely trying to connect to GitHub using SSH. Try this link if you want to use ssh. Instead the more preferred method is to push/pull over HTTPS. Try this instead git remote set-url origin https://github.com/User/UserRepo.git. Then if you push, git will ask for your email and password and most probably be successful. Using Https also solves the problem of push/pull behind firewalls

sounds like you haven't properly set up your SSH key for github. The GitHub Documentation should be a good place to start help you properly set up your SSH keys.

Related

make GitKraken forget GitHub credentials

I cloned a project from Github, which went well. Then I pulled once and accidently entered the wrong credentials. Now I always get "failed to get server certificate: The handle is in the wrong state for the requested operation". So this looks like that problem but it can't be that TLS issue because cloning from that Github repo worked just a few minutes before (not anymore now). How can I make GitKraken forget my Github credentials? Settings→Integrations→GitHub→Disconnect did not do the trick. Adding a GitKraken SSH key to GitHub did not help either.
Update: Now I tried Forget All. The problem now is that GitKraken is asking me again and again for my credentials. But login to GitHub in browsers work. Why?
In the end I cloned the project again. Maybe this workaround also works for others.

There is a permission denied error when I share repo between pycharm and github

Git#github.com: Permission denied (publickey). Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
I am facing this problem while cloning repository from my GitHub account to PyCharm.
I have logged in from the VCS menu.
While uploading on github, the new repository was made but there were no files inside it.
Please help me in resolving this issue
If you have logged in (username/password) then try instead an https URL.
An SSH URL supposes PyCharm has access to a private/oublic key pair.
(and then uses an URL like git#github.com:..., not Git#github.com)

failing when trying to push to my remote git repository

i'm new use of VSCode. I'm trying to push my commits to remote repo, i'm getting credentials prompt, but i getting following output:
remote: Anonymous access to myname/myrepo.git denied.
fatal: Authentication failed for 'https://github.com/myname/myrepo.git/'
git fetch
Please help
Thanks
There are many people having this problem. I know it has been reported for a couple of times here: https://code.visualstudio.com/Issues/List
It seems those tickets are not available on public. File a new bug. Hopefully they are going to fix it until the next release.
I just had a problem where I was receiving a similar error, and I found these articles resourceful to fix this issue.
Potential reasons for problem:
Windows Credentials doesn't have the right Github credentials
Adding Git credentials on Windows
Github deprecated password authentication and you now have to use Personal Access Token when pushing
https://techglimpse.com/git-push-github-token-based-passwordless/
Hope this is helpful to anyone else that comes across this post.

First time using github and want to know command to access a repository

I just installed github in ubuntu and i don't know the commands to login with my username and password and command to access a repository and work on it
Thanks
Best way for linux is probably to give github your public key in your settings page, rather than log in as such. Then you can add a github repository to your local repository with git remote add git#github.com:<repopath> and push/pull from it with git push and git pull respectively using SSH for authentication instead of username and password.
If you don't understand any of what I've just said, I'd recommend looking at some tutorials, like this GitHub help article or Try Git.

permission denied error when try to clone fb app in heroku to github

I am trying to make a fb app. I follow the tutorial in (https://devcenter.heroku.com/articles/facebook#working-locally," this") link. To grabbing a copy of my app’s source code using Git use the following camand in windows7 cmd.
git clone git#heroku.com:myappname.git -o heroku
But there is an error
permission denied
fatal :could not read from remote repository.
Please make sure you have the curect access rights and repository exists.
Hm, are you sure a ssh key was set up correctly when you installed toolbelt?
This question has more suggestions for solving that particular problem.