Skip to content
Snippets Groups Projects

GitLab als zusätzliche remote hinzufügen

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Tim Fechner
    Edited

    So fügen Sie GitLab als zusätzliche remote hinzu

    Möchten Sie unseren GitLab Server nur als zusätzliche remote zu Ihrem Projekt hinzufügen nutzen Sie bitte folgenden Befehl:


    git remote add gitlab git@lab.it.hs-hannover.de:{GROUP OR USERNAME}/{REPO_NAME}.git


    In diesem Fall sind die Variablen {GROUP OR USERNAME} und {REPO_NAME} mit den entsprechenden Werten zu ersetzen. Sollten Sie beispielsweise ein Projekt namens "foobar" in der Gruppe "barbatz" angelegt haben, würde die remote-url folgendermaßen aussehen:

    git remote add gitlab git@lab.it.hs-hannover.de:barbatz/foobar.git

    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment