An Interest In:
Web News this Week
- March 6, 2024
- March 5, 2024
- March 4, 2024
- March 3, 2024
- March 2, 2024
- March 1, 2024
- February 29, 2024
September 16, 2022 12:41 pm GMT
Original Link: https://dev.to/edsonjuniornarvaes/change-the-repository-source-3m4j
Change the repository source
First check the source of your repository.
git remote -v
Rename the current source to ensure that there will be no conflict.
git remote rename originname ancient-origin
Define the new repository source.
git remote add origin repository_address
Check if the changes occurred as requested.
git remote -v
To avoid the accumulation of sources, remove the old source.
git remote rm ancient-origin
Again, check that the changes have occurred as requested.
git remote -v
Original Link: https://dev.to/edsonjuniornarvaes/change-the-repository-source-3m4j
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To