Github Permission Error - github-for-mac

I created a new branch from master just testing it and pushed "publish", but it says this:
Authentication Failed
You may not have permission to access c. Check Preferences to make sure you’re still logged in.
But when I got to preferences, I am logged in.
"c" is the name of the folder.

The problem was I had cloned someone else's repository and it was trying to publish to their repository rather than my own.

I had the same issue after cloning someone else's repo and the advice to fork it resolved the issue.

Related

Why do I need to log in to Github

Because xlsx tag v1.1.0 does not contain the latest features, I use the following command to update the xlsx package to master
# go get github.com/bingoohuang/xlsx#master
Username for 'https://github.com':
Why do I still need to login to download the github public code, this does not happen when I download packages from other go get
The strange thing is that I can execute it on windows, but the above login question occurs on centos7.
what caused this to happen? I really appreciate any help with this.
It looks like github.com/bingoohuang/xlsx#master depends on github.com/bingoohuang/go-yaml, which either does not exist or is private.
Because GitHub responds with a 404 error for private repositories, it is likely this missing repository is causing go get to issue a password prompt.
A go get for a library without missing dependencies (e.g., go get github.com/rs/zerolog#master) works without a problem.

Sourcetree: Invalid password for Github despite having a valid OAUTH token on Windows

I use Github and Sourcetree on my Windows machine.
I have been into Tools - Options - Authentication and added my Github account. I am 120% sure that my settings are correct.
However, when I try to push anything, I keep getting:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin develop:develop
fatal: HttpRequestException encountered.
An error occurred while sending the request.
remote: Invalid username or password.
fatal: Authentication failed for 'REPOLINK'
Pushing to REPOLINK
Completed with errors, see above.
Now, I also tried to remove the account in my settings, and then entering e-mail / password manually. Usually it will say OK and ask for my 2FA code on my phone, but for now it just fails and responds with invalid username/password.
Any ideas?
EDIT:
Still a problem. I also tried to decrease my commit size from 15k files to just 1. Doesn't work.
I managed to commit through the console (but I have to fill credentials each time).
So unfortunately this is still unsolved.
http://www.omniweb.com/wordpress/?p=1291 this person solved it, it works for me.
navigating to C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree and removing (or renaming) the passwd file.
Once this file is removed, restart SourceTree and execute a fetch or something else that requires access to the repo in question. SourceTree will then prompt you for your password, rewriting the cached credentials.
This is not a very good answer, but I still wanted to show my solution now 1.5 months have gone by.
On 3 computers I've failed to get Sourcetree to work. I'm using Windows on all machines, and above problem keeps happening no matter what I do. I've tried preferences/settings, filling it on prompt...
I doubt it's my account - I use Github OAUTH in many other programs.
The day after this post, I switched to SmartGit. Works much better and no problems, and will not go back.
This is a very bad answer - but if you're ending up here from Google - this is one possible solution.

Why does Xcode push to remote always failed with 'Enter your credentials for the repository on host github.com'

When I push my code to remote repository in Github using XCode, it always failed.
When I changed my code, I clicked the Commit in Source Contol and then it filed.
Xcode said that I have no credentials for my own repository!!!!
Actually, I add the new repository in the XCode Preferences. The https address is from my github account. I am definitely sure that the Github username and password is correct.
After add the repository in the Preference, I commit the code along with clicking the push to remote.
Here is the error info. Who can tell me why!!
This is very strange
I have changed url in git config file to http version and it helped.

How to solve Unexpected HTTP status code: 404(-1)

Although I set up my xcode swift file to create a repository when I click SourceControl -> Make a Working Copy I receive the error window "All projects are already under source control. Then when I to Window -> Welcome to Xcode -> "Check out an existing project" I get the error "Unexpected HTTP status code: 404(-1).
Does anyone have an idea on how to solve this please? Thank you
When you use Welcome to XCode > Check out an existing project you need to enter the github repository url as provided on the <> Code tab in github. It will look something like
https://github.com/username/MyRepository.git
In my case I got -401 with the following premises:
The URL was OK
The user credentials were OK
However, the user was not approved for downloading from that repository
Using the correct user solved the issue.
I got this issue when using xcode with bitbucket service.
Not entirely sure if I changed something or bitbucket changed something but I noticed that my domain in the URI for the remote had changed in bitbucket and xcode was no longer attempting to push to the correct path.
eg.
domain/repo.git
for some reason now was:
domaincom/repo.git
again, I do not remember changing anything but perhaps something changed in bitbucket to alter how the usernames are formed?
I think my team ( username ) was domain.com and they always worked with the first part up until the first . but perhaps changes have allowed for their service to remove all dots and use the full team name ( username )
I removed and re added the remote using the correct URI and it worked.
In my case, the issue was with my bitbucket plan which had exceeded the free plan tier and was restricted to read-only. Fixed my plan in bitbucket, and the issue was solved after a while.

Xcode setting up for git repository hung

I was trying to set up my Xcode 5 connecting to my github repository. The procedure stopped like this
It could never get through it. What else can I do to get it done? Thanks!
I ran into the same issue, and it turned out to be because I was using a lowercase username in the URL when my actual GitHub username is mixed-case (!). It seems that missing or invalid credentials sometimes simply cause it to hang on the "Verifying" step.
This is a long shot, but go to your GitHub profile and double-check the actual case of your username. Also try copying the clone URL from GitHub's web page for the repository, then adding the (username)# portion, to make sure there are no typos in your URL.

Resources