Skip to content

initdc/mirror-to-gitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mirror-to-gitlab

Mirror and place your codebase to other providers

prepare

  1. create token with RW to [repository, user]
  1. install deps
# for creating repo
eval "$(curl https://get.x-cmd.com)"
x cb init
x tea init

# for exec x-cmd
sudo gem install cr-exec octokit faraday-retry

mirror

  1. Gen ssh keys
ruby set-ssh.rb
  1. Add your public keys for git clone ssh://
  1. edit your username in files get-data.rb push-mirror.rb
OCTOKIT_ACCESS_TOKEN=ghp_xxx ruby get-data.rb
ruby push-mirror.rb

daily use

pushing with no bare repo

ruby set-remote.rb

License

GPL-2.0

Releases

No releases published

Packages

No packages published

Languages