Intermediate Git & Version Control
Q52 / 100

What is the purpose of "upstream" tracking branches, e.g. when you see "Your branch is up to date with 'origin/main'"?

Correct! Well done.

Incorrect.

The correct answer is A) A tracking branch establishes a link between a local branch and a remote branch, allowing commands like "git pull" and "git push" to know which remote branch to sync with by default, and enabling Git to report how far ahead/behind the branches are

A

Correct Answer

A tracking branch establishes a link between a local branch and a remote branch, allowing commands like "git pull" and "git push" to know which remote branch to sync with by default, and enabling Git to report how far ahead/behind the branches are

Explanation

"git push -u origin <branch>" sets up tracking, so future "git pull"/"git push" on that branch don't require specifying the remote and branch name explicitly.

Progress
52/100