til/git/setting-ssh-url-for-pulling-or-pushing.md

8 lines
377 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

You can clone a repository with ssh and pull/push without having to enter your credentials. If you already cloned it with https and want to change your remote url, do this:
```bash
git remote -v
origin https://github.com/Asocia/dotfiles.git (fetch)
origin https://github.com/Asocia/dotfiles.git (push)
git remote set-url origin git@github.com:Asocia/dotfiles.git
```