Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
Created November 1, 2024 10:09
Show Gist options
  • Save lidgnulinux/3f5736280b098f1c69bb34175c1fa6e4 to your computer and use it in GitHub Desktop.
Save lidgnulinux/3f5736280b098f1c69bb34175c1fa6e4 to your computer and use it in GitHub Desktop.
Dummy approach to update mirror repository.

Update mirror repository, main repository from gitlab & mirror repository on github.

Steps

  1. Enter local mirror repository (cloned from github).

    $ cd local_mirror
    
  2. Fetch updates from remote main repository (gitlab).

    $ git fetch https://gitlab.com/main/repository
    
  3. Merge updates.

    $ git merge FETCH_HEAD
    
  4. Push updates to remote mirror repository.

    $ git push origin master
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment