(Note that if you choose to use SSH to push, you must configure the SSH public key in advance) You can then use git push both to push to two remote warehouses at the same time.
Github supports hooks, you can set them up. Get a server and do this yourself. In this way, every time you push to github, the hook will be triggered to achieve automatic synchronization with gitcafe.
Git push to multiple warehouses at the same time
To prevent a git repository from being inaccessible due to various reasons, you can push the code to multiple repositories.
Edit the config file in the .git directory under the local warehouse directory.
Add:
When push again, run
You can use the git remote set-url command to achieve this, taking Coding and GitHub as examples:
(Note that if you choose to use SSH to push, you must configure the SSH public key in advance)
You can then use
git push both
to push to two remote warehouses at the same time.Github supports hooks, you can set them up. Get a server and do this yourself. In this way, every time you push to github, the hook will be triggered to achieve automatic synchronization with gitcafe.