qazwsx
qazwsx

Reputation: 26898

Do I need `git checkout` after `git pull`?

After pulling changes committed and pushed by other developers by git pull, do I need to run git checkout or something else to get my local working copy "fully synchronized" with the latest version of all files?

Upvotes: 1

Views: 1707

Answers (1)

larsks
larsks

Reputation: 311606

No. git pull performs both a git fetch -- which updates your local repository with changes from the remote repository -- and git merge, which updates your local working copy (the checked out files).

After a git pull operation, your working copy should be fully synchronized, barring any local modifications you have made.

Upvotes: 9

Related Questions