GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PowerShellLibrary/git-sync: Simply push from git repo from one remote to other

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
config-example.json
config-example.json
 
 
schema.json
schema.json
 
 
sync.ps1
sync.ps1
 
 

Repository files navigation

git-sync

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.

how to

How to use

1. Generate SSH key

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*

2. Add SSH keys to your alternate hosting websites

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

3. Create configuration

  • Rename config-example.json into config.json
  • Add your configuration

4. Run script

.\sync.ps1

License

MIT

About

Simply push from git repo from one remote to other

Topics

backupgitgithubpowershellpowershell-scriptrepositoriesrepositoryrepository-managementrepository-toolsrepository-utilitiesssh-agentssh-keysync

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.