Skip to content

Stuck at Fetching origin #19979

Open
Open

Description

@salalaslam

The problem

The problem is that the Github Desktop app gets stuck at "Fetching origin" whenever I leave my macbook on (lid closed) overnight. In the morning if the Github Desktop app is still running, it would be stuck at "Fetching origin" no way to fix this, the only option is to restart it.

Release version

3.4.16

Operating system

macOS 15.3 (24D60)

Steps to reproduce the behavior

  1. Open Github Desktop
  2. Close the lid of your laptop (macbook in my case)
  3. Open the lid (after a while)
  4. Stuck at "Fetching origin"

Log files

No response

Screenshots

Image

Additional context

No response

Activity

  1. added
    triage
    on Feb 7, 2025
  2. sergiou87 commented on Feb 7, 2025

    @sergiou87
    Member

    Could you upload the log file from GitHub Desktop so that I could get some more information about this error? To access the log files go to the file menu in GitHub Desktop and select Help > Show Logs.
    The log files are created daily -- please upload a log file as an attachment from a day where you experienced the issue.

  3. added
    more-info-needed
    and removed
    triage
    on Feb 7, 2025
  4. salalaslam commented on Feb 9, 2025

    @salalaslam
    Author

    Could you upload the log file from GitHub Desktop so that I could get some more information about this error? To access the log files go to the file menu in GitHub Desktop and select Help > Show Logs. The log files are created daily -- please upload a log file as an attachment from a day where you experienced the issue.

    2025-02-09.desktop.production.log

  5. removed
    more-info-needed
    on Feb 9, 2025
  6. added
    triage
    on Feb 10, 2025
  7. deathart commented on Feb 11, 2025

    @deathart

    Hello, Same error and same logs for me

    2025-02-11T15:28:30.272Z - info: [ui] [fetchRepoRulesForBranch] unable to fetch repo rules for branch: develop | repos/XXXX/XXXX/rules/branches/develop
    Error: Upgrade to GitHub Pro or make this repository public to enable this feature.
    

    I specify that the problem is on any private deposit (Deposit on my account, or deposit of an orga to which I am admin)

  8. tidy-dev commented on Feb 11, 2025

    @tidy-dev
    Contributor

    Just fyi, "Error: Upgrade to GitHub Pro or make this repository public to enable this feature." is not related to the fetch button. That is simply a information log that we log when we attempt to fetch repo rules and were unable. This informs whether we show that feature or not.

  9. tidy-dev commented on Feb 11, 2025

    @tidy-dev
    Contributor

    @salalaslam or @deathart wondering if switching branches or switching repositories clears the erroneous fetching state?

  10. added
    more-info-needed
    on Feb 11, 2025
  11. removed
    triage
    on Feb 11, 2025
  12. deathart commented on Feb 11, 2025

    @deathart

    @salalaslam or @deathart wondering if switching branches or switching repositories clears the erroneous fetching state?

    Yes, if I change branch or depot while it's stuck in fetch, the problem persists.
    M'y account is Pro and m'y private dépôt as same problem

  13. added
    triage
    on Feb 11, 2025
  14. jeffcstock commented on Feb 12, 2025

    @jeffcstock

    Same issue for me - only fix is to restart GH Desktop. I've uploaded logs from the previous day and from today - my laptop was open for a long time last night before closing so as mentioned above maybe that has something to do with it.

    2025-02-11.desktop.production.log

    2025-02-12.desktop.production.log

  15. 13 remaining items

  16. removed
    more-info-needed
    on Mar 15, 2025
  17. tidy-dev commented on Apr 15, 2025

    @tidy-dev
    Contributor

    Just to briefly touch back on this, those outputs to verify that the underlying fetch call in git is hung and so GitHub Desktop is doing as is expected and waiting for it. That said, It would be ideal to figure out why git is getting hung and be able to reproduce so we can see if GitHub Desktop "should" work around it or if it needs to be fixed in git.

  18. added
    bug
    priority-2
    on Apr 15, 2025
  19. removed
    triage
    on Apr 15, 2025
  20. added
    investigation-needed
    on Apr 15, 2025
  21. Rey-Wang commented on Jan 15, 2026

    @Rey-Wang

    is there any updates with this?

  22. arnassavickas commented on Jan 15, 2026

    @arnassavickas

    I'm still affected by this issue.

  23. benyu7 commented on Feb 19, 2026

    @benyu7

    Same

  24. pedrobatista-vestas commented on Sep 18, 2026

    @pedrobatista-vestas

    Any update?

  25. sharuzzaman commented on Nov 25, 2026

    @sharuzzaman

    I face this issue on Mac on daily basis. After the Mac sleep the whole night, on the next morning, Github Desktop will stuck on the Fetching Origin. connection is using SSH to github. private repo. the only solution is to exit Github Desktop, and start again.

    Annoying solution, but good enough as workaround. If the git-fetch is not responding for a few seconds (30 seconds maybe?) , I think Github Desktop should be able to just kill it and start a new one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginvestigation-neededpriority-2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions