HTTP/2 302
server: nginx
date: Mon, 22 Dec 2025 19:12:00 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090724031706
location: https://web.archive.org/web/20090724031706/https://github.com/guides/dealing-with-errors-when-pushing
server-timing: captures_list;dur=0.545384, exclusion.robots;dur=0.051164, exclusion.robots.policy;dur=0.042446, esindex;dur=0.008016, cdx.remote;dur=5.481922, LoadShardBlock;dur=288.639626, PetaboxLoader3.resolve;dur=84.324974, PetaboxLoader3.datanode;dur=192.351715
x-app-server: wwwb-app204-dc6
x-ts: 302
x-tr: 322
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app204; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 22 Dec 2025 19:12:00 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Fri, 24 Jul 2009 03:17:05 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 131ms
x-archive-orig-etag: "344293ccaa3c0025c946b21b96401396"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 7384
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 24 Jul 2009 03:17:06 GMT
link:
; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_10_20090724003354_crawl103.gpg-c/51_10_20090724031619_crawl101.arc.gz
server-timing: captures_list;dur=0.673479, exclusion.robots;dur=0.025118, exclusion.robots.policy;dur=0.010926, esindex;dur=0.011272, cdx.remote;dur=9.769174, LoadShardBlock;dur=126.822034, PetaboxLoader3.datanode;dur=79.134218, PetaboxLoader3.resolve;dur=105.128011, load_resource;dur=213.614160
x-app-server: wwwb-app204-dc6
x-ts: 200
x-tr: 386
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Dealing with errors when pushing - Guides - GitHub
Guides: Dealing with errors when pushing
It says “error: failed to push to ‘git://github.com/me/myrepo.git’” when I push. What gives?
Addresses that start with git:// are read only. In order to push, you must use the “git@github.com:me/myrepo.git” address listed as “Push URL ” in the repo info for your repository.
error: “failed to push some refs to ’git@github.com:me/myrepo.git”
You might get this error after rewriting history in your local repo or reset-ing to not current head. Try to run git pull first. If it doesn’t work and your tree looks (gitk --all) like:
A—B—C <— master
/
o—o—X
\
Y-Z <— remotes/origin/master
try to rewrite it with (assuming you’re on the master branch):
git rebase origin/master
which should make:
A’—B’—C’ <— master
/
o—o—X—Y—Z <— remotes/origin/master
If you’re absolutely sure that your local branch is the correct one and you want to drop all diverging commits on the remote, you can use the following command.
Warning: this will not only destroy the history on the remote, it might also give an error message to anyone who updates from the same remote (depending on how much history you rewrite). Use this only as the very last resort.
git push —force origin master
Last edited by cypher , 12 months ago
Versions:
Current Version 3 by cypher Version 2 by cypher Version 1 by tekkub
This feature is coming soon. Sit tight!