Remote repository in GIT (GIT Remote)

To work in a collaborative project we require GIT repository to be hosted at some location which is accessible to the project technical team. This access can be ready only or read and write depending upon the role you are assigned in the team.

git remote

Git remote is the command to get the shortnames assigned to the repository, using the attribute -v you can check if you have fetch(read) and push(write) access to the repository

When you execute the command git clone <url> then GIT automatically adds the remote of the URL under the short name origin and then executes the command git fetch origin

git clone https://github.com/tyson332/JavaFx

is same as

git remote add origin https://github.com/tyson332/JavaFx
git fetch origin

git remote show <shortname of remote>

You can find the detail information about a particular remote using in the git remote show command.
git remote show :

Above command shows more details about the repository

Leave a Comment