Git edit remote origin URL

To edit remote origin URL in Git configuration file can be edited:

# more /home/taras/.git/config

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote “origin”]
url = ssh:///podlom/example.git
fetch = +refs/heads/*:refs/remotes/origin/*

#

Where url = ssh:///podlom/example.git new example path.

To check new settings use command:

# git remote -v

origin ssh:///podlom/example.git (fetch)
origin ssh:///podlom/example.git (push)

#