Git-Sync helps you sync your repositories across multiple remotes.
The main goal of this script is to create enough redundancy so even if a single provider will fail you can still access your code using alternative hosting companies.
cd c:\Users\[USER_NAME]\.ssh\
ssh-keygen.exe
ssh-add.exe id_rsa
notepad.exe id_rsa.pub
In case you are using SSH agent delivered with Windows make sure that you enabled the ssh-agent service
To solve this problem
Error connecting to agent: No such file or directory
follow instructions below
Set-Service -Name ssh-agent -StartupType Manual
Start-Service ssh-agent
Get-Service ssh*
Go to you repository hosting website and add key generated in previous step.
Here are some examples:
https://[USER_NAME].visualstudio.com/_details/security/keys
https://bitbucket.org/account/user/[USER_NAME]/ssh-keys/
https://github.com/settings/keys
- Rename
config-example.json
intoconfig.json
- Add your configuration
.\sync.ps1