Git Change Remote Repository Name - Recognize and honor achievements with our Git Change Remote Repository Name. Inspire and encourage with individualized certificates.
This command will list the current remote repositories, each one of them with its name and url. For example the output could be: origin http://myserver/myproject.git (fetch) origin http://myserver/myproject.git (push) originis the name (alias) of the remote repository. Execute: git remote set-url to change the remote. To add a new remote, use the git remote add command on the terminal, in the directory your repository is stored at. The git remote add command takes two arguments: A remote name, for example, origin A remote URL, for example, https://github.com/OWNER/REPOSITORY.git For example:
Git Change Remote Repository Name
Git Change Remote Repository Name
4 Answers Sorted by: 193 $ git remote rename So, for this example: $ git remote rename heroku production Useful docs here: https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories#renaming-a-remote-repository Share Follow edited Sep 5 at 13:24 answered Nov 21, 2015 at 6:54 rouan To solve this, either use a different remote name, or rename the original remote.