Dev


AboutLinksGalleryHer

Development workflow:

Personal notes on my development workflow -- Work In Progress.

▨ SSH

Generating Ed25519 key pair for GitLab:

ssh-keygen -t ed25519 -f ~/.ssh/gitlab_com_ed25519

Move the Private key to a secure location:

mv gitlab_com_ed25519 /backup/.keys/

Create the ~/.ssh/config file:

Host gitlab.com
  Preferredauthentications publickey
  IdentityFile /backup/.keys/gitlab_com_ed25519

SSH agent:

  • Fish shell:

    eval (ssh-agent -c)

  • Bash shell:

    eval "$(ssh-agent -s)"

  • ZSH shell:

    eval `ssh-agent`

Adding the Private key to SSH agent:

ssh-add /backup/.keys/gitlab_com_ed25519

Update the Public key in GitLab (User Settings ▸ SSH Keys ▸ Paste Public key ▸ Add key) and test the connection:

ssh -T git@gitlab.com

▨ GIT

  • Local:

    git init

  • Remote (Clone):

    git clone git@gitlab.com:gitlab-org/gitlab.git

https://docs.gitlab.com/ee/gitlab-basics/start-using-git.htm

Git global setup git config --global user.name "Antonio Godinho" git config --global user.email "ctrlc@tutanota.com" Create a new repository git clone git@gitlab.com:antonio.godinho/dot-files.git cd dot-files touch README.md git add README.md git commit -m "add README" git push -u origin master Push an existing folder cd existing_folder git init git remote add origin git@gitlab.com:antonio.godinho/dot-files.git git add . git commit -m "Initial commit" git push -u origin master Push an existing Git repository cd existing_repo git remote rename origin old-origin git remote add origin git@gitlab.com:antonio.godinho/dot-files.git git push -u origin --all git push -u origin --tags


This page was last updated on the 07th June 2020

▵ Jump to top ▵