question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when publishing branch: "The remote disconnected. Check your Internet connection and try again."

See original GitHub issue

Description

When I try to publish my branch to Github from Github Desktop, it stalls on “Pushing to origin” before showing the following error: “The remote disconnected. Check your Internet connection and try again.”

I’ve also tried pushing through Command Prompt but again see a fatal error (screenshot).

Version

  • GitHub Desktop: Version 1.1.1
  • Git: 2.17.0
  • Operating system: Windows 10 Home

Steps to Reproduce

  1. Create a new repository on github.com and open in GitHub desktop.
  2. Create a new branch via GitHub desktop.
  3. Add some files and commit to the new branch.
  4. Try to publish the branch to GitHub.

Expected Behavior

Branch should be published to GitHub website.

Actual Behavior

Fatal error prevents branch from being published.

Additional Information

I have seen other bug reports for this issue, but none of the suggested fixes have worked for me.

My network connection is good and stable. I’m not behind a firewall.

The repository contains two files, one of which being a large CSV (146MB). I have tried “git config --global http.postBuffer 157286400” without success.

Logs

2018-05-21.desktop.production.log

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Lindhomcommented, Nov 12, 2022

Try this command. It might be an issue with your post buffer

git config --global http.postBuffer 157286400

Where do i put this command?

2reactions
klamomdcommented, Jul 24, 2018

Note to any others experiencing this problem: for me it stemmed from my project folder being saved onto another internal hard drive (M:) instead of my main drive (C:). Creating the repository on my desktop and copying everything over fixed the issue for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to publish branch to remote Github repository
I have tried using the command git push -u origin main to push changes through the terminal and it still gives me an...
Read more >
Fix Network Disconnected Please Check Your ... - YouTube
Thank You Everyone So Much For Watch My Video On " Fix Network Disconnected Please Check Your Internet Connection And Try Again Error...
Read more >
Frequently Encountered Orchestrator Errors
Bad request and. The remote host did not answer in a timely manner. The issues occur when not all users on a machine...
Read more >
How to use the dugite.GitError.RebaseConflicts function in dugite ...
RemoteDisconnection: return 'The remote disconnected. Check your Internet connection and try again.' case DugiteError.HostDown: return 'The host is down.
Read more >
Troubleshoot SD-WAN Control Connections - Cisco
As part of troubleshooting, ensure that you have the connectivity to the controller. Use Internet Control Message Protocol (ICMP) and/or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found