Recently, the local server installed with GIT has crashed, and there is no way to temporarily migrate the repository to ensure the normal operation of the project.
Right-click the project root directory and execute
Query the remote address of the current Warehouse
Git remote-V: view the URL of an existing remote Repository
Modify and add remote addresses
1. Modify the command git remote set-URL origin URL to replace the remote repository address, and change the URL to a new URL address.
2. Delete and add
Git remote RM Origin
Git remote add origin remote_git_address (remote_git_address)
Re-Add the file to be submitted (Project)
Git add.
Push the file to the Branch
Git push Origin -- all push master and branch
Git push -- tags push tag
Https://www.jianshu.com/p/712ed12d599c
Https://www.cnblogs.com/xhf-wonder/p/6728967.html
Git repository migration