DEV Community

MUHAMMAD ARBAB ANJUM
MUHAMMAD ARBAB ANJUM

Posted on

How to push your code on new github/gitlab account?

1- Create SSH Key:
ssh-keygen -t ed25519 -C "arbab@gmail.com"

2- Command to Start SSH Agent
eval "$(ssh-agent -s)"

3- Command to add your key
ssh-add ~/.ssh/id_ed25519

4- Copy your ssh key from ~/.ssh/id_ed25519.pub

5- Paste Keys:

  • For Github: Paste in project_repo > settings > Deploy Keys
  • For Gitlab: Paste in project_repo > settings > Repository > Deploy Keys

Top comments (0)