Before you can pull or fetch files, you'll need to use the git clone command to clone an origin Git repository to a directory on your local PC.
Both the git pull and git fetch commands downloads files from the origin Git repository to your branch (e.g. the directory on your local PC that contains the cloned origin repository). The git checkout command can be used to download one or more files.
If your branch already contains a file that is also in the origin Git repository, and there are differences between the files, git pull will attempt to integrate and merge the differences into the files in your branch.
git fetch will download but not merge or integrate any differences between similar files
The git pull command without any options will pull files from the origin to master.
The git remote command with the -v or --verbose flag can be used to display the URL of origin.
git remote --verbose . . . origin ssh://firstname.lastname@example.org:7999/path/to/example.git (fetch) origin ssh://email@example.com:7999/path/to/example.git (push)
Or you can include origin master.
git pull origin master
The git branch command can be used to display the name of your branch. By default, your branch will be named master.
The prior command will return "Already up-to-date" if your the files in your branch are the same revision as the files in the origin Git repository.
The -q or --quiet option can be used to suppress output.
git pull --quiet