Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Post History

71%
+3 −0
Q&A How to make git push/pull work again?

I have a bunch of GIT repositories on my laptop, which have their "origin" set to repositories on GitHub. After a commit in a local repository, I do git push -u origin master to update the remot...

1 answer  ·  posted 1y ago by Olin Lathrop‭  ·  edited 1y ago by Moshi‭

Question git
#4: Post edited by user avatar Moshi‭ · 2022-08-20T12:11:32Z (over 1 year ago)
Author clarified that it's a local problem rather than with GitHub
  • How to make push/pull to GitHub work again?
  • How to make git push/pull work again?
I have a bunch of GIT repositories on my laptop, which have their "origin" set to repositories on GitHub.  After a commit in a local repository, I do

<pre>git push -u origin master</pre>

to update the remote repository on GitHub.  This was all working fine for a long time, up until a few days ago.  According to GitHub, my last successful update was 6 days ago, so 13 Aug 2022.

Now when I try to push a new version, the command just sits there for maybe 5 seconds, then ends without doing anything or writing anything to STDOUT or STDERR.

I thought this might be a permission problem, so I deleted all GitHub entries from GIT's cache, and also from the Windows credential manager.  I thought that would force it to ask me for password and/or access token again, but no change.

As far as I know, I didn't change any GIT settings, and I certainly didn't update GIT since I was last able to push changes to GitHub.  Local interactions with repositories still work.  I can commit, view diffs, see logs, etc.

<b>How do I make GIT interactions with remote repositories on GitHub work again?</b>

Windows 10, using GIT from the command line.

<hr>

<blockquote>Does pull work?</blockquote>

No, same symptom.  The command hangs for about 5 seconds, then ends without doing anything or saying anything.

<blockquote>has this failed in multiple repositories?</blockquote>

Yes, all of them.  I have dozens of local repositories that are linked to ones on GitHub as the origin.  Attempts at pushing or pulling to/from all of them seem to fail the same way.

<blockquote>show us what git remote show origin says</blockquote>

Very interesting.  It does the same thing, meaning it hangs for 5 seconds then does nothing.  Here is a transcript:

<pre>C:\embed\source\util&gt;git remote show origin

C:\embed\source\util&gt;</pre>

However, it seems to know something about origin:

<pre>C:\embed\source\util>git log --oneline --reverse --decorate
d25440b First version in GIT.
1cf8498 (HEAD -> master, origin/master, origin/HEAD) Added error checking routines.</pre>

This looks like a strong clue for someone that knows GIT better than I do.  It seems that all my local GIT repositories have "forgotten" what the origin is.  I have some repositories where the origin is at BitBucket.  I just checked one of those, and it has the same problem.  So this is apparently an issue with GIT on my machine, not with GitHub or BitBucket.

I checked a few repositories I know I wasn't in recently, and they all have the problem.  This means it must be some global GIT setting somewhere?  I don't understand GIT enough to make sense of this, though.

#3: Post edited by user avatar Olin Lathrop‭ · 2022-08-19T16:35:47Z (over 1 year ago)
  • I have a bunch of GIT repositories on my laptop, which have their "origin" set to repositories on GitHub. After a commit in a local repository, I do
  • <pre>git push -u origin master</pre>
  • to update the remote repository on GitHub. This was all working fine for a long time, up until a few days ago. According to GitHub, my last successful update was 6 days ago, so 13 Aug 2022.
  • Now when I try to push a new version, the command just sits there for maybe 5 seconds, then ends without doing anything or writing anything to STDOUT or STDERR.
  • I thought this might be a permission problem, so I deleted all GitHub entries from GIT's cache, and also from the Windows credential manager. I thought that would force it to ask me for password and/or access token again, but no change.
  • As far as I know, I didn't change any GIT settings, and I certainly didn't update GIT since I was last able to push changes to GitHub. Local interactions with repositories still work. I can commit, view diffs, see logs, etc.
  • <b>How do I make GIT interactions with remote repositories on GitHub work again?</b>
  • Windows 10, using GIT from the command line.
  • <hr>
  • <blockquote>Does pull work?</blockquote>
  • No, same symptom. The command hangs for about 5 seconds, then ends without doing anything or saying anything.
  • <blockquote>has this failed in multiple repositories?</blockquote>
  • Yes, all of them. I have dozens of local repositories that are linked to ones on GitHub as the origin. Attempts at pushing or pulling to/from all of them seem to fail the same way.
  • <blockquote>show us what git remote show origin says</blockquote>
  • Very interesting. It does the same thing, meaning it hangs for 5 seconds then does nothing. Here is a transcript:
  • <pre>C:\embed\source\util&gt;git remote show origin
  • C:\embed\source\util&gt;</pre>
  • However, it seems to know something about origin:
  • <pre>C:\embed\source\util>git log --oneline --reverse --decorate
  • d25440b First version in GIT.
  • 1cf8498 (HEAD -> master, origin/master, origin/HEAD) Added error checking routines.</pre>
  • This looks like a strong clue for someone that knows GIT better than I do. It seems that all my local GIT repositories have "forgotten" what the origin is. I have some repositories where the origin is at BitBucket. I just checked one of those, and it has the same problem. So this is apparently and issue with GIT on my machine, not with GitHub or BitBucket.
  • I checked a few repositories I know I wasn't in recently, and they all have the problem. This means it must be some global GIT setting somewhere? I don't understand GIT enough to make sense of this, though.
  • I have a bunch of GIT repositories on my laptop, which have their "origin" set to repositories on GitHub. After a commit in a local repository, I do
  • <pre>git push -u origin master</pre>
  • to update the remote repository on GitHub. This was all working fine for a long time, up until a few days ago. According to GitHub, my last successful update was 6 days ago, so 13 Aug 2022.
  • Now when I try to push a new version, the command just sits there for maybe 5 seconds, then ends without doing anything or writing anything to STDOUT or STDERR.
  • I thought this might be a permission problem, so I deleted all GitHub entries from GIT's cache, and also from the Windows credential manager. I thought that would force it to ask me for password and/or access token again, but no change.
  • As far as I know, I didn't change any GIT settings, and I certainly didn't update GIT since I was last able to push changes to GitHub. Local interactions with repositories still work. I can commit, view diffs, see logs, etc.
  • <b>How do I make GIT interactions with remote repositories on GitHub work again?</b>
  • Windows 10, using GIT from the command line.
  • <hr>
  • <blockquote>Does pull work?</blockquote>
  • No, same symptom. The command hangs for about 5 seconds, then ends without doing anything or saying anything.
  • <blockquote>has this failed in multiple repositories?</blockquote>
  • Yes, all of them. I have dozens of local repositories that are linked to ones on GitHub as the origin. Attempts at pushing or pulling to/from all of them seem to fail the same way.
  • <blockquote>show us what git remote show origin says</blockquote>
  • Very interesting. It does the same thing, meaning it hangs for 5 seconds then does nothing. Here is a transcript:
  • <pre>C:\embed\source\util&gt;git remote show origin
  • C:\embed\source\util&gt;</pre>
  • However, it seems to know something about origin:
  • <pre>C:\embed\source\util>git log --oneline --reverse --decorate
  • d25440b First version in GIT.
  • 1cf8498 (HEAD -> master, origin/master, origin/HEAD) Added error checking routines.</pre>
  • This looks like a strong clue for someone that knows GIT better than I do. It seems that all my local GIT repositories have "forgotten" what the origin is. I have some repositories where the origin is at BitBucket. I just checked one of those, and it has the same problem. So this is apparently an issue with GIT on my machine, not with GitHub or BitBucket.
  • I checked a few repositories I know I wasn't in recently, and they all have the problem. This means it must be some global GIT setting somewhere? I don't understand GIT enough to make sense of this, though.
#2: Post edited by user avatar Olin Lathrop‭ · 2022-08-19T16:28:13Z (over 1 year ago)
  • I have a bunch of GIT repositories on my laptop, which have their "origin" set to repositories on GitHub. After a commit in a local repository, I do
  • <pre>git push -u origin master</pre>
  • to update the remote repository on GitHub. This was all working fine for a long time, up until a few days ago. According to GitHub, my last successful update was 6 days ago, so 13 Aug 2022.
  • Now when I try to push a new version, the command just sits there for maybe 5 seconds, then ends without doing anything or writing anything to STDOUT or STDERR.
  • I thought this might be a permission problem, so I deleted all GitHub entries from GIT's cache, and also from the Windows credential manager. I thought that would force it to ask me for password and/or access token again, but no change.
  • As far as I know, I didn't change any GIT settings, and I certainly didn't update GIT since I was last able to push changes to GitHub. Local interactions with repositories still work. I can commit, view diffs, see logs, etc.
  • <b>How do I make GIT interactions with remote repositories on GitHub work again?</b>
  • Windows 10, using GIT from the command line.
  • I have a bunch of GIT repositories on my laptop, which have their "origin" set to repositories on GitHub. After a commit in a local repository, I do
  • <pre>git push -u origin master</pre>
  • to update the remote repository on GitHub. This was all working fine for a long time, up until a few days ago. According to GitHub, my last successful update was 6 days ago, so 13 Aug 2022.
  • Now when I try to push a new version, the command just sits there for maybe 5 seconds, then ends without doing anything or writing anything to STDOUT or STDERR.
  • I thought this might be a permission problem, so I deleted all GitHub entries from GIT's cache, and also from the Windows credential manager. I thought that would force it to ask me for password and/or access token again, but no change.
  • As far as I know, I didn't change any GIT settings, and I certainly didn't update GIT since I was last able to push changes to GitHub. Local interactions with repositories still work. I can commit, view diffs, see logs, etc.
  • <b>How do I make GIT interactions with remote repositories on GitHub work again?</b>
  • Windows 10, using GIT from the command line.
  • <hr>
  • <blockquote>Does pull work?</blockquote>
  • No, same symptom. The command hangs for about 5 seconds, then ends without doing anything or saying anything.
  • <blockquote>has this failed in multiple repositories?</blockquote>
  • Yes, all of them. I have dozens of local repositories that are linked to ones on GitHub as the origin. Attempts at pushing or pulling to/from all of them seem to fail the same way.
  • <blockquote>show us what git remote show origin says</blockquote>
  • Very interesting. It does the same thing, meaning it hangs for 5 seconds then does nothing. Here is a transcript:
  • <pre>C:\embed\source\util&gt;git remote show origin
  • C:\embed\source\util&gt;</pre>
  • However, it seems to know something about origin:
  • <pre>C:\embed\source\util>git log --oneline --reverse --decorate
  • d25440b First version in GIT.
  • 1cf8498 (HEAD -> master, origin/master, origin/HEAD) Added error checking routines.</pre>
  • This looks like a strong clue for someone that knows GIT better than I do. It seems that all my local GIT repositories have "forgotten" what the origin is. I have some repositories where the origin is at BitBucket. I just checked one of those, and it has the same problem. So this is apparently and issue with GIT on my machine, not with GitHub or BitBucket.
  • I checked a few repositories I know I wasn't in recently, and they all have the problem. This means it must be some global GIT setting somewhere? I don't understand GIT enough to make sense of this, though.
#1: Initial revision by user avatar Olin Lathrop‭ · 2022-08-19T15:21:34Z (over 1 year ago)
How to make push/pull to GitHub work again?
I have a bunch of GIT repositories on my laptop, which have their "origin" set to repositories on GitHub.  After a commit in a local repository, I do

<pre>git push -u origin master</pre>

to update the remote repository on GitHub.  This was all working fine for a long time, up until a few days ago.  According to GitHub, my last successful update was 6 days ago, so 13 Aug 2022.

Now when I try to push a new version, the command just sits there for maybe 5 seconds, then ends without doing anything or writing anything to STDOUT or STDERR.

I thought this might be a permission problem, so I deleted all GitHub entries from GIT's cache, and also from the Windows credential manager.  I thought that would force it to ask me for password and/or access token again, but no change.

As far as I know, I didn't change any GIT settings, and I certainly didn't update GIT since I was last able to push changes to GitHub.  Local interactions with repositories still work.  I can commit, view diffs, see logs, etc.

<b>How do I make GIT interactions with remote repositories on GitHub work again?</b>

Windows 10, using GIT from the command line.