Cannot push origin on github desktop #24076
-
I was trying to push origin when suddenly I can’t. I have no clue why - You are not logged in to your account: see File > Options.
I was trying to push origin when suddenly I can’t. I have no clue why since none of the suggested problems match, i do not have 2fa , I still have my permissions on the repository and I am also logged in. Help |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
I would try some of the suggestions here: Authentication Failure with GitHub Desktop · Issue #8860 · desktop/desktop · GitHub. If those don’t work reply back with the ones you tried + a new set of logs. Also, can you push origin successfully from the command line? |
Beta Was this translation helpful? Give feedback.
-
hey there, thanks for the answer, though I am not sure how I can push using the command line, since the tutorials talk about some third party software being downloaded, but isn’t there like an in-built command line or cmd, and if yes, what command should i use ? i am very sorry if this is a dumb question |
Beta Was this translation helpful? Give feedback.
-
Not a dumb question & here are the steps for getting setup w/ Open a terminalTo execute Git commands on your computer, you must open a terminal (also known as command prompt, command shell, and command line). Here are some options:
Installing GitDetermine if Git is already installed on your computer by opening a terminal and running this command:
If Git is installed, the output is:
If your computer doesn’t recognize Configuring GitDifference between download and cloneTo create a copy of a remote repository’s files on your computer, you can either download or clone the repository. If you download it, you cannot sync the repository with the remote repository on Github. Cloning a repository is the same as downloading, except it preserves the Git connection with the remote repository. You can then modify the files locally and upload the changes to the remote repository on Github. Pull and pushAfter you save a local copy of a repository and modify the files on your computer, you can upload the changes to Github. This is referred to as pushing to the remote, because you use the command When the remote repository changes, your local copy is behind. You can update your local copy with the new changes in the remote repository. This is referred to as pulling from the remote, because you use the command |
Beta Was this translation helpful? Give feedback.
-
@NonRidiculousAdjective I’d be happy to take a look at the log file to see if we can figure out why the authentication is failing. To access the log files go to the file menu in GitHub Desktop and select |
Beta Was this translation helpful? Give feedback.
-
Hey there, from the current looks of it, it looks like relogging fixed the issue. Before fixing it I managed to push origin through the terminal too, so that worked as well. Though that is suspiciously simple, since I before reinstalled the whole app and that didn’t work, github probably keeps its login data even after the reinstall. Hopefully it is fixed now and thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
Hey there, thank you for replying. Managed to fix the issue through relogging, even though the reinstall I did before didn’t work. I don’t know whether it is necessary anymore but in any case, here is the log from the 4th of april, when I posted my initial post: (also thanks for offering help!) (The error was parsed as 3: Authentication failed. Some common reasons include: You are not logged in to your account: see File > Options. You are not logged in to your account: see File > Options. You are not logged in to your account: see File > Options. You are not logged in to your account: see File > Options. You are not logged in to your account: see File > Options. You are not logged in to your account: see File > Options. You are not logged in to your account: see File > Options. You are not logged in to your account: see File > Options. |
Beta Was this translation helpful? Give feedback.
-
If someone have the same issue one day : i had this message because my know_hosts was obsolete. Just delete (or update) your know_hosts file and everything should work again |
Beta Was this translation helpful? Give feedback.
-
i have just submit a very long issue, and Github contact page show error 404, what a pity, my newest desktop github error, can not push! |
Beta Was this translation helpful? Give feedback.
-
Mine acts like it is pushing and El Magico... it does nothing when I check the github repo on github. WTF? I can clone just fine, but if I make changes it pretends to push but does nothing. Can this be any more worthless? Then sometimes I get the error like the original poster if I use the "local repo" option. WTF? How can it find my SSH key sometimes but not others? Or is it using HTTP to clone? |
Beta Was this translation helpful? Give feedback.
Not a dumb question & here are the steps for getting setup w/
git
. I hope this helps, although don’t feel compelled to use the command line if you don’t wish to. Have you tried restarting GitHub desktop and logging out and logging back in? If not definitely give those a shot first.Open a terminal
To execute Git commands on your computer, you must open a terminal (also known as command prompt, command shell, and command line). Here are some options:
terminal
.