Homebrew install: Failed during: git fetch origin master:refs/remotes/origin/master -n --depth=1
After a few hours of research and brute force I learned the issue was due to git not being configured properly. Some articles suggested downgrading your git or reinstalling all together. However, I resolved the issue just by adding the following
git config --global user.email yourgitemail@example.com
Then remove the cellar
and homebrew
directories from /usr/local
and re-try the installation.
First time homebrew installation failure
delete this file
/usr/local/Homebrew/.git/refs/remotes/origin/master.lock
try
rm -f /usr/local/Homebrew/.git/refs/remotes/origin/master.lock
and then try again
Unable to fix homebrew install on mac
As stupid as it sounds, the problem was I had Child Block enabled on my virgin wifi.
Error installing Homebrew unexpected disconnect while reading sideband packet
This is more of github checkout issue rather than Homebrew issue, checkout this suggestion:
It might be your network issue. If the network is too slow, then it might disconnect connection unexpectedly.
If you are having a good internet and still getting this message then it might be an issue with post buffer. You can resolve it by executing the following command in your cmd.
git config --global http.postBuffer 157286400
Cannot install Homebrew in Mac Sierra
https://raw.githubusercontent.com/Homebrew/install/master/install
Open the link in browser and save the file as install.rb.
Then run
ruby install.rb
Related Topics
Parse CSV File with Header Fields as Attributes for Each Row
Rails 4 How to Ignore Pending Migrations
In Ruby What Does "=>" Mean and How Does It Work
Write CSV in Ruby 1.9 and CSV::Writer
What Is the %W "Thing" in Ruby
Any Way to Determine Which Object Called a Method
How to Break from Nested Loops in Ruby
Custom Ruby Gem in Gemfile on Heroku
How to Set/Get Session Vars in a Rack App
How to Include Video in Jekyll Markdown Blog
Finding the Session Id in Rails 3
How to Unfreeze an Object in Ruby
Fast Way to Get Remote Image Dimensions
Sprockets::Circulardependencyerror in Store#Index
Failed to Build Gem Native Extension
Safely Assign Value to Nested Hash Using Hash#Dig or Lonely Operator(&.)