Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
lecture
lecture
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • pt1_hs20
  • lecturelecture
  • Wiki
  • git ssh

Last edited by pollakg Oct 04, 2020
Page history

git ssh

Adding a remote to your project

Create a new gitlab project on your personal gitlab site and follow the gitlab instructions.
Note: make sure that the remote starts with git@ and not https if you want to use a ssh key.
You can see the https and ssh url when clicking on the clone button.

  • In order to verify that your remote was successfully added to your local project you can type:
git remote -v

on your terminal (when you are somewhere inside you git project folder).

  • The -u option when doing the initial push in the gitlab instructions sets the upstream. This means that you do not always need to type git push <remote_name> <branch> but that it is enough to type git push or pull respectively.
    In other words you set a default remote and branch.
Clone repository
  • exercise02
  • exercise03
  • exercise09
  • git ssh
  • Home
  • ssh keys
  • ssh_config