Skip to content

Instantly share code, notes, and snippets.

@nitheeshkm
Last active April 30, 2023 22:37
Show Gist options
  • Save nitheeshkm/487514756dd0091e39e5e00df7a77fb6 to your computer and use it in GitHub Desktop.
Save nitheeshkm/487514756dd0091e39e5e00df7a77fb6 to your computer and use it in GitHub Desktop.

Revisions

  1. nitheeshkm revised this gist Apr 30, 2023. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions priv-to-publ.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    ## merge private repo to public
    - [Link](https://docs.esmvaltool.org/en/latest/community/private_repository.html)

    ### Clone the private repository
    - git clone [email protected]:priv-repo
    - git checkout main
    @@ -10,4 +10,6 @@

    ### Public repo
    - git remote add public [email protected]:publ-repo
    - git push -u public new-branch-dev
    - git push -u public new-branch-dev

    <!--- [Link](https://docs.esmvaltool.org/en/latest/community/private_repository.html) --->
  2. nitheeshkm created this gist Apr 30, 2023.
    13 changes: 13 additions & 0 deletions priv-to-publ.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    ## merge private repo to public
    - [Link](https://docs.esmvaltool.org/en/latest/community/private_repository.html)
    ### Clone the private repository
    - git clone [email protected]:priv-repo
    - git checkout main
    - git pull
    - git checkout -b priv-branch-dev
    - git push -u origin new-branch-dev
    - git push

    ### Public repo
    - git remote add public [email protected]:publ-repo
    - git push -u public new-branch-dev