DEV Community

Mukesh Singh
Mukesh Singh

Posted on • Edited on

Git

git clone git@:

ssh-agent bash
Note if agent has not started it will throw error when running
ssh-add -l
Error connecting to agent: No such file or directory

Also it will ask for private key password

At the user folder
ssh-add ~/.ssh/

Test
ssh -Tv

git config user.email "YOUR_EMAIL"
git config user.name "YOUR_NAME"

Check remote URL

git remote -v

To Check Detail
git remote show origin

To change Origin

git remote set-url origin

Top comments (0)