Bird
0
0

Which command shows the remote branch a local branch is tracking?

easy📝 Conceptual Q2 of 15
Git - Remote Repositories
Which command shows the remote branch a local branch is tracking?
Agit status
Bgit remote show
Cgit branch -vv
Dgit log --oneline
Step-by-Step Solution
Solution:
  1. Step 1: Identify command to display tracking info

    The command git branch -vv lists local branches with their tracking remote branches.
  2. Step 2: Compare other commands

    git remote show shows remote details but not tracking per branch; git status shows current branch status; git log --oneline shows commit history.
  3. Final Answer:

    git branch -vv -> Option C
  4. Quick Check:

    Show tracking branch = git branch -vv [OK]
Quick Trick: Use 'git branch -vv' to see tracking branches [OK]
Common Mistakes:
  • Using git status to find tracking info
  • Confusing git remote show with tracking branch display
  • Expecting git log to show tracking branches

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes