Home > other >  Pull from one GitLab repository and push into another one
Pull from one GitLab repository and push into another one

Time:11-02

So I have a public repository from my lecturer on GitLab, which I cloned into intellij via "import VCS" (https Link). Now I want to always push into my own repository in GitLab and not the public repository. How can i do this in intellij or where else can I set this up?

I already tried to copy the project into a new project and push seperately but this isnt a good solution because then i need to copy everything manually whenever new things are being added in the public repository and i cant just pull from the public repository. The optimal solution would be, that i can pull from the public repository but push my commits into my own repository in GitLab

CodePudding user response:

clone the public repository using command

git clone repo_path

git add .

git commit -m "comment"

git push origin main

  • Related