How to add and remove another git remote repository
You have an origin remote repository for your git. But you need to add other remote repository. Lets see how to do this
You have an origin remote repository for your git. But you need to add other remote repository. Lets see how to do this
git remote add my_new_name https://github.com/hilmanski/any_remote_repo
Now you can verify with
git remote -v
It will list all you remote repositories.
To push to this new repo, we can just type
git push my_new_name main
*change main, with any branch you want
How to remove git repository
Once you don’t need a remote repo, you can delete it with
git remote remove my_new_name