Git pull – tiny guide on how to use git pull command professionally

To use git efficiently and professionally, one does not need to know everything about git. That’s our goal here – provide bite-sized guides on how to use git.

This short guide is all about git pull.

How to use that command?

Type in the terminal/console:

git pull

When to use that command?

Use git pull when you are currently on a remote git branch (i.e. current branch was pushed to a server).

How that command works?

This will make git pull recent changes in the current branch from the server, as well as other remote branches. If there is a conflict between your local branch and remote changes, git pull will also initiate a merge or rebase process.

TLDR, git pull will bring in fresh changes in the current branch and other branches.

Additional information

In 99% of work with git you want to use just git pull without any other parameters. You want to use this when you’re on a shared team branch (usually, develop/dev/master/main/etc). Consider git pull command to be a git’s way of reading what happened since you cloned/git pull-ed. A newspaper.

If you use Gitlab or Github, we would recommend also opening the Gitlab Activity page or Github commits page to review what changes your team did while you were asleep.

Additional reading: