Gitlab notes

From raju

repository url

Sample repository url

https://gitlab.com/<user>/<project>.git
git@gitlab.com:<user>/<project>.git

password less cloning of repository only works with SSH. For example

git clone git@gitlab.com:<user>/<project>.git

If the repository is already checked out via HTTPS and you want to change it to SSH

git remote set-url origin git@gitlab.com:<user>/<project>.git

tips

  • To disable markup formatting in the issue tracker, enclose the text in <pre> and </pre> tags

generate new recovery codes with an ssh key

ssh git@gitlab.com 2fa_recovery_codes

See (2) in https://about.gitlab.com/2018/08/09/keeping-your-account-safe/