| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 23 Dec 2025 23:15:45 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100116124020
location: https://web.archive.org/web/20100116124020/https://github.com/guides/copy-a-remote-branch
server-timing: captures_list;dur=0.611708, exclusion.robots;dur=0.044925, exclusion.robots.policy;dur=0.036091, esindex;dur=0.006404, cdx.remote;dur=8.902046, LoadShardBlock;dur=163.710880, PetaboxLoader3.datanode;dur=61.806246, PetaboxLoader3.resolve;dur=30.903138
x-app-server: wwwb-app244-dc8
x-ts: 302
x-tr: 200
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app244; 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: Tue, 23 Dec 2025 23:15:46 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sat, 16 Jan 2010 12:40:19 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "39db4d73bb4f2f6d889b452bcdac2060"
x-archive-orig-x-runtime: 63ms
x-archive-orig-content-length: 7447
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: Sat, 16 Jan 2010 12:40:20 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_13_20100116111925_crawl103-c/51_13_20100116123334_crawl101.arc.gz
server-timing: captures_list;dur=0.575855, exclusion.robots;dur=0.016282, exclusion.robots.policy;dur=0.006277, esindex;dur=0.010801, cdx.remote;dur=8.423557, LoadShardBlock;dur=256.288206, PetaboxLoader3.datanode;dur=143.823475, PetaboxLoader3.resolve;dur=140.518416, load_resource;dur=101.035506
x-app-server: wwwb-app244-dc8
x-ts: 200
x-tr: 402
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
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
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, about 20 hours ago
Versions:
This feature is coming soon. Sit tight!
