Run git remote add <shortname> <url> add a new remote Git repository and specify a shorthand that you can easily refer to:
$git remote origin $ git remote add pb https://github.com/paulboone/ticgit $ git remote-voriginhttps://github.com/schacon/ticgit (fetch)originhttps://github.com/schacon/ticgit (push)pbhttps://github.com/paulboone/ticgit (fetch)pbhttps://github.com/paulboone/ticgit (push)
You can now use strings in the command line pb instead of the entire URL.
Renaming
$Git remote rename PB paul $ git remoteoriginpaul
It is important to note that this will also modify the name of your remote branch. Those that used pb/master to be quoted are now quoted paul/master .
If, for some reason, you want to remove a remote repository-you've moved away from the server or you no longer want to use a particular image, or a contributor is no longer contributing-you can use git remote rm :
$Git remote rm paul $ git remoteorigin
Re-learning git-remote Repository