I have a GitHub repository that I push my data in it. I would like to add another remote repository to push my data at the same time.
For example;
git push origin master
git push {another origin} master
Anybody know if it is possible?
You can add an additional remote using the following syntax:
git remote add remotename https://github.com/user/repo.git
You can then push to it (assuming you have the permissions) using:
git push remotename remotebranch
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With