Options for getting changes
These commands are very useful when interacting with a remote repository. clone and fetch download remote code from a repository's remote URL to your local computer, merge is used to merge different people's work together with yours, and pull is a combination of fetch and merge.
Cloning a repository
To grab a complete copy of another user's repository, use git clone like this:
$ git clone https://HOSTNAME/USERNAME/REPOSITORY.git
# Clones a repository to your computer
You can choose from several different URLs when cloning a repository. While logged in to GitHub, these URLs are available on the main page of the repository when you click Code.

When you run git clone, the following actions occur:
- A new folder called
repois made - It is initialized as a Git repository
- A remote named
originis created, pointing to the URL you cloned from - All of the repository's files and commits are downloaded there
- The default branch is checked out
For every branch foo in the remote repository, a corresponding remote-tracking branch