mirror of
https://github.com/sahinakkaya/til.git
synced 2024-11-24 17:49:36 +01:00
TIL: Setting ssh url for pulling or pushing
This commit is contained in:
parent
7e75d391a0
commit
26b40e0075
7
git/setting-ssh-url-for-pulling-or-pushing.md
Normal file
7
git/setting-ssh-url-for-pulling-or-pushing.md
Normal file
@ -0,0 +1,7 @@
|
||||
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:
|
||||
```
|
||||
❯ 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
|
||||
```
|
Loading…
Reference in New Issue
Block a user