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.
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

Popular posts from this blog

Enabling Com Port on Hyper-V 2nd Generation VM / Windbg

DLL Injection using CreateRemoteThread in Windows 10

Using Overlapped I / O in DeviceIoControl