HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git rename-remote — Change remote for pulling and pushing. Part of `git-extras`. More information: <https://github.com/t

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandgit rename-remoteandclichangeforremotepulling

Problem

How to use the git rename-remote command: Change remote for pulling and pushing. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-rename-remote>.

Solution

git rename-remote — Change remote for pulling and pushing. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-rename-remote>.

Change the upstream remote to origin:
git rename-remote {{upstream}} {{origin}}

Code Snippets

Change the upstream remote to origin

git rename-remote {{upstream}} {{origin}}

Context

tldr-pages: common/git rename-remote

Revisions (0)

No revisions yet.