CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 11 Aug 2025 00:06:21 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100421194911
location: https://web.archive.org/web/20100421194911/https://github.com/guides/copy-a-remote-branch
server-timing: captures_list;dur=0.450849, exclusion.robots;dur=0.018677, exclusion.robots.policy;dur=0.012017, esindex;dur=0.008749, cdx.remote;dur=730.309296, LoadShardBlock;dur=368.214408, PetaboxLoader3.datanode;dur=121.293477, PetaboxLoader3.resolve;dur=198.313470
x-app-server: wwwb-app200
x-ts: 302
x-tr: 1121
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app200; path=/
x-location: All
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, 11 Aug 2025 00:06:22 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Wed, 21 Apr 2010 19:49:10 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "13483b25e6d83072c317e9eaa9da62b1"
x-archive-orig-x-runtime: 82ms
x-archive-orig-content-length: 7422
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 21 Apr 2010 19:49:11 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 26 Jul 2009 11:39:39 GMT", ; rel="prev memento"; datetime="Sat, 20 Feb 2010 01:09:01 GMT", ; rel="memento"; datetime="Wed, 21 Apr 2010 19:49:11 GMT", ; rel="next memento"; datetime="Fri, 28 May 2010 14:28:40 GMT", ; rel="last memento"; datetime="Thu, 02 Mar 2017 13:52:07 GMT"
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_15_20100421184516_crawl101_IndexOnly-c/51_15_20100421194454_crawl101.arc.gz
server-timing: captures_list;dur=0.680270, exclusion.robots;dur=0.025157, exclusion.robots.policy;dur=0.015243, esindex;dur=0.012934, cdx.remote;dur=118.302898, LoadShardBlock;dur=280.596221, PetaboxLoader3.datanode;dur=155.570538, PetaboxLoader3.resolve;dur=377.617348, load_resource;dur=287.891638
x-app-server: wwwb-app200
x-ts: 200
x-tr: 730
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
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
Copy a remote branch - Guides - GitHub
Guides: Copy a remote branch
Guides: Copy a remote branch
Copy local_branch in local_repo to remote_branch in remote_repo.
git push {repo} {local_branch}:{remote_branch}
Ex: git push origin foobranch:barbranch
renames local foobranch to remote barbranch
To actually copy a remote branch to a new name, first a local branch needs to be created and then pushed to a remote branch with a different name. For example:
git checkout -b temp-foo origin/foo
git push origin temp-foo:bar
git checkout -b bar origin/bar
git branch -d temp-foo
Last edited by flichtenheld, 3 months ago
Versions: