Last active
February 14, 2019 16:56
-
-
Save gojimmypi/d65fb4245d9177894c9f0a15d8cb6873 to your computer and use it in GitHub Desktop.
git problems and resolutions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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