Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
September 16, 2022 12:41 pm GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To