📖
Isu's Wiki
  • Welcome to Isu's Wiki
  • Linux
    • SSH Automatic Login
    • Nginx HTTPS
    • Nginx Login Page
    • OpenVPN Server
    • PPTP Client Settings
    • LVM Allocation
    • Partition and Mount
    • Vagrant and VirtualBox
    • Bind9 SRV Record
    • Git Two Remote
    • ESXi Nvidia - 525.89.02
    • Install Qemu
    • Recover network (no netplan, iproute2)
  • Kubernetes
    • Kubernetes Reset
    • x509 Certificate Renewal
  • LaTeX
    • Code Snippet with Box in LaTeX
  • Go
    • [gRPC] Generate .pb.go from .proto
  • eBPF
    • [Kprobe] Get Argument Values
    • [Cilium] TroubleShooting
    • [Python] Install BCC
  • MicroStack
    • [Microstack] Add Image
    • [Microstack] Quota Manage
    • [Microstack] Security Group
    • [Microstack] Overcommit Resources
  • CentOS
    • Change Interface Name
    • Install Vagrant with vagrant-libvirt
  • OpenStack
    • [Nova] noVNC not working
    • [Basic] OpenStack Installation
    • [Magnum] TroubleShooting
Powered by GitBook
On this page
  • 1. Cloning GitLab
  • 2. Adding Remote
  • 3. Push GitHub
  1. Linux

Git Two Remote

PreviousBind9 SRV RecordNextESXi Nvidia - 525.89.02

Last updated 9 months ago

When using GitLab for private use, you also sometimes would like to upload the same code to GitHub as well. In this example, we clone a repo from GitLab and mirror the same thing to GitHub.

1. Cloning GitLab

For example, we have a repo in GitLab

This is a private repo, so you will not have an access to this.

git clone http://git.boanlab.com/boanlab/solution.git

2. Adding Remote

For example, we also have a repo in GitHub to mirror this one

git remote add github https://github.com/isu-kim/boanlab-solution.git

3. Push GitHub

Be aware, GitHub has base branch named main not master.

git push github main

This will push the code which was cloned from GitLab to GitHub.

http://git.boanlab.com/boanlab/solution
https://github.com/isu-kim/boanlab-solution