Files
hacker-how-to/multiple_push.md
2025-08-07 16:42:10 +03:00

2.9 KiB
Raw Permalink Blame History

Multiple Git repositories to push at once

First we create remote repositories on the related forge web user interfaces.

For this repository it is :

We add SSH addresses but you may add the https addresses

Here it is step by step

git clone ssh://git@source.masscollabs.xyz/masscollaborationlabs/hacker-how-to.git

Then cd hacker-howo-to

After thıs change the origin with masscollabs and add git clone ssh://git@source.masscollabs.xyz/masscollaborationlabs/hacker-how-to.git

This will make the Masscollabs Source Forge lead for all address

After this add GitHub git clone git@github.com:hwpplayer1/hacker-how-to.git

After this add GitLab git remote add gitlab git@gitlab.com:masscollabs/masscollaborationlabs/hacker-how-to.git

After this add sr.ht git remote add sr.ht git@git.sr.ht:~mertgor/hacker-how-to

After this add vern.cc git remote add vern.cc ssh://git@vern.cc:1813/hwpplayer1/hacker-how-to.git

After this add disroot git remote add disroot git@git.disroot.org:hwpplayer1/hacker-how-to.git

After this add codeberg git remote add codeberg git@codeberg.org:hwpplayer1/hacker-how-to.git

and after this add emin.software git remote add emin.software ssh://git@git.emin.software:3022/hwpplayer1/hacker-how-to.git

After this we will execute git remote set-url --add --push all command for each git ssh address

They are :

git remote set-url --add --push all ssh://git@source.masscollabs.xyz/masscollaborationlabs/hacker-how-to.git

git remote set-url --add --push all git@github.com:hwpplayer1/hacker-how-to.git

git remote set-url --add --push all git@gitlab.com:masscollabs/masscollaborationlabs/hacker-how-to.git

git remote set-url --add --push all git@git.sr.ht:~mertgor/hacker-how-to

git remote set-url --add --push all ssh://git@vern.cc:1813/hwpplayer1/hacker-how-to.git

git remote set-url --add --push all git@git.disroot.org:hwpplayer1/hacker-how-to.git

git remote set-url --add --push all git@codeberg.org:hwpplayer1/hacker-how-to.git

git remote set-url --addd --push all ssh://git@git.emin.software:3022/hwpplayer1/hacker-how-to.git

Then run git add . for your files git commit -S -m "Your Commit Message" and run git push -uv all to push your commits to remote.

Source : https://forum.pardus.org.tr/t/birden-fazla-git-reposuna-sahip-olmak/15381/3

happy hacking!...