Skip to content

Instantly share code, notes, and snippets.

@gojimmypi
Last active February 14, 2019 16:56
Show Gist options
  • Save gojimmypi/d65fb4245d9177894c9f0a15d8cb6873 to your computer and use it in GitHub Desktop.
Save gojimmypi/d65fb4245d9177894c9f0a15d8cb6873 to your computer and use it in GitHub Desktop.
git problems and resolutions
fatal: unable to connect to git.qemu-project.org:
git.qemu-project.org[0: (my ip address)]: errno=Connection refused
firewall may be blocking outbound git:// protocol
override with a variety of scopes:
git config --global url."https://".insteadOf git://
git config --global url.https://github.com/.insteadOf git://github.com/
git config --global url.https://git.qemu.org/git/.insteadOf git://git.qemu-project.org/
git config --global url.https://anongit.freedesktop.org/git/.insteadOf git://anongit.freedesktop.org/
git config --global url.https://github.com/riscv.insteadOf git://github.com/riscv
example to clear:
git config --global --unset url.https://github.com/.insteadOf
============================================================================================================
git problem: Updates were rejected because the tip of your current branch is behind
git push
To <url>.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '<url>.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.
solution: git pull --rebase <url>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment