How done with git fetch, checkout and pull with one command line?

Viewed 3263

Every time I run 3 commands when I need to test my team member code on local.

Like that:

git fetch remote_name branch_name 
git checkout branch_name
git pull origin master

or

git fetch remote_name branch_name && git checkout branch_name etc...

Because normally after fetch it we always checkout into it than we need pull from origin master. If we can run one command to done all those step it will faster.

Does git has a command to fix that?

1 Answers
Related