The substitution of the address of the remote repository

In git, you can replace some part of the remote repository address (part of the remote addresses) in all repositories using the global config and also this will be given when setting up a specific repository.

We simplify the move from Github <–> Gitlab <–> Bitbucket

If for example you moved from Github to Gitlab and you have locally many projects in which you need to update remote then you can do it globally until you replace remote in all repositories or again No need to use Github.

[Read More]

Submitting changes to several git repositories

Detailed setting description

Let’s start with the usual settings remote

git remote add origin https://github.com/xorcare/example.git

Further, what would happen automatically push in the additional repository, you need to run the following command

git remote set-url --add --push origin https://bitbucket.org/xorcare/example.git

After executing this command, we get the situation that fetch changes occur from Github, but sending the changes push to the repository ** Bitbucket **, in order to return sending the changes to the repository Github and get The desired result with sending changes to both repositories needs to execute one more command.

[Read More]