Replies: 4 comments 13 replies
-
Hey @lcolen that sounds super frustrating! I've passed on your feedback to the desktop team but in the meantime maybe I can help you with the CLI. It sounds like you have a
Then when you try to
Now, it should be the case that when you log in using
Which should configure the credential manager manually. After this succeeds which should look something like:
Then you can try to If that doesn't work we'll do some more digging! |
Beta Was this translation helpful? Give feedback.
-
Thanks,
Your reply gave me enough clues to eventually find:
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
which seems to have gotten me over this particular hump.
I was pretty sure that I had already set up a Personal Access Token,
but I guess it expired.
I *think* that I'm checking in one of the commits right now. I seem to
have tried to do a commit everything on the command line and it failed
for the same reasons.
Now when I try to push commits I'm getting
error: failed to push some refs to
'https://github.com/lcolen/cm410_pid_prototype.git'
hint: Updates were rejected because the tip of your current branch is
behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for
details.
unfortunately gitlog seems to just tell me what commits that I've tried
to make, and not what their actual status is.
…On Thu, 2023-11-09 at 00:44 -0800, William Martin wrote:
Hey @lcolen that sounds super frustrating! I've passed on your
feedback to the desktop team but in the meantime maybe I can help you
with the CLI.
It sounds like you have a git remote set up that expects passwordw
authentication such that if you ran git remote -v you would see your
username before the @ symbol e.g:
➜ git remote -v
origin ***@***.***/cli/cli.git (fetch)
origin ***@***.***/cli/cli.git (push)
Then when you try to git push from the command line, you received an
error like:
Password for ***@***.***':
remote: Support for password authentication was removed on August 13,
2021.
remote: Please see
https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls
for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/cli/cli.git/'
Now, it should be the case that when you log in using gh auth login
you have the option to setup the git credential manager to use the
oauth token that is provided when you log in. However, since it's not
clear when or how you logged in, the first thing I'd suggest is
running:
gh auth setup-git
Which should configure the credential manager manually. After this
succeeds which should look something like:
➜ gh auth setup-git
[git config --global --replace-all
credential.https://github.com.helper ]
[git config --global --add credential.https://github.com.helper
!/opt/homebrew/bin/gh auth git-credential]
[git config --global --replace-all
credential.https://gist.github.com.helper ]
[git config --global --add credential.https://gist.github.com.helper
!/opt/homebrew/bin/gh auth git-credential
Then you can try to git push again.
If that doesn't work we'll do some more digging!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ah, I see, that wiped out my entire history for everything. I would have been better off just starting a whole new branch. Oh well, at least I can resume checking things in. |
Beta Was this translation helpful? Give feedback.
-
That's interesting. I had the mistaken understanding that the history was stored on github. For some reason, I had thought that the local .git was just the local history that hadn't been pushed back to the server.
But, since I'm the paranoid sort that kept a copy of my original .git file, what if I were to want to have a branch that had all of my previous history, and I didn't care if I had the changes I wasn't able to check in. How would I go about reconstructing what I had a few weeks ago, or for that matter yesterday, from my backed up .git directory?
…-----Original message-----
From: William Martin ***@***.***>
Sent: Thursday, November 9 2023, 10:34 pm
To: cli/cli ***@***.***>
Cc: Larry Colen ***@***.***>; Mention ***@***.***>
Subject: Re: [cli/cli] How do I push individual commits? (Discussion #8312)
Well indeed, .git contains the entire history of your project! When you git checkout some commit, git looks in there to change the state of your working directory.
—
Reply to this email directly, view it on GitHub <#8312 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AYLC5DXYDNE6RXZF2LSOO6LYDXDF3AVCNFSM6AAAAAA7DVLXM6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMZQGEYDC>.
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I've been using github desktop fairly successfully for about a year and a half. For the most part, it just works.
A few days ago, I noticed that a bunch of my recent commits have not been pushed to github. Something that I've found online seems to think that it is because I'm trying to push too much at one time and one of the links in the chain is timing out and dropping the connection.
When I tried to find out how to get github desktop to push the commits individually, I found out that this is impossible, it will either do everything, or nothing at all. It suggested using git from the command line.
When I tried to use git from the command line it told me that it no longer accepts password verification and that I have to do
gh auth login
When I do a gh auth login it tells me that I'm already logged in.
I'm pretty well stuck here, and can't think of much to do other than cloning everything off of github, starting a new repository, checking in the new files in small batches and just abandoning the current repo, or maybe just branch. |
There really must be a better way to go about this. I can't believe that it both won't let me check things in all together, nor will it let me check things in in smaller batches.
Beta Was this translation helpful? Give feedback.
All reactions