Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.02 KB

File metadata and controls

58 lines (39 loc) · 1.02 KB

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

ln set-remote.rb ~/bin/set-remote.rb
set-remote.rb

License

GPL-2.0