How to changing the GIT remote repository
Changing the GIT remote repository
When using GIT, the remote server may be transferred to another server or the address of the existing server may change. At this time, simply change the Git remote repository to the address of the server you migrated to.
1. Remove the existing Git remote repository
Git's default remote server is usually set to origin. We will remove the existing Git remote repository and add a new Git remote repository.
You can change it with the command below.
If you use a different name, please write the name of the remote repository you are using.
You can change it with the command below.
If you use a different name, please write the name of the remote repository you are using.
git remote remove origin
2. Adding a new Git remote repository
Add a new Git remote repository with the following command.
git remote add origin [새로운 주소]
With the above command, you can keep the existing remote repository and add new repositories other than origin.
Comments
Post a Comment