Seeing Your Remote
When using git remote -v , you can view all the remote URLs next to their corresponding short names.
$ git remote -v
origin https://github.com/SajaAbabneh/reading-notes.git (fetch)
origin https://github.com/SajaAbabneh/reading-notes.git (push)
Adding Remotes
git remote add labs https://github.com/SajaAbabneh/reading-notes
then writing git remote -v
labs https://github.com/SajaAbabneh/reading-notes (fetch)
labs https://github.com/SajaAbabneh/reading-notes (push)
origin https://github.com/SajaAbabneh/reading-notes.git (fetch)
origin https://github.com/SajaAbabneh/reading-notes.git (push)
Fetching
Fetching entails pulling data that you don’t have from a remote project.
Pushing
Changes from local “labs” to remote main .
Renaming
To rename a remote short name , write this
git remote rename old name new name
Remove
to remove remote name , write
git remote rm new name