This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2408|Reply: 0

Git Change Repository Address (Clone to New Repository)

[Copy link]
Posted on 3/16/2024 11:48:12 AM | | | |
Requirements: How to download a project from a public Git repository and push it to your own private Git repository, andKeep a history of submissions

First, clone an existing Git project, go to the project folder, and view the current remote repository address with the following command:

As shown below:



Change the remote address of your Git repository with the following command:

Check whether the change is successful with the command as follows:

Push the code to the new remote repository address with the following command:

You can see that after the push is successful, you can view the history of the commit successfully, as shown in the figure below:



(End)





Previous:Windows 11 original ISO image file download
Next:.NET Project Setup Central Package Management (CPM)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com