Skip to content

Instantly share code, notes, and snippets.

@waqashamid
Last active July 11, 2020 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waqashamid/73ef3ba330c6155f7090b7ef4b26666e to your computer and use it in GitHub Desktop.
Save waqashamid/73ef3ba330c6155f7090b7ef4b26666e to your computer and use it in GitHub Desktop.
[Useful GIT commands]
# You might need to start ssh-agent before you run the ssh-add command:
eval `ssh-agent -s`
ssh-add
# Lists already added identities (‘ssh keys’)
ssh-add -l
Then, if you don't see your key listed, add it with the following (replace identity with its real name):
# Add a new identity
ssh-add ~/.ssh/identity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment