CompTIA Linux+ XK0-006 (V8) Practice Question

You have cloned a repository and checked out a new local branch called hotfix/auth-timeout. After committing the fix, you want to publish the branch so that a branch with the same name is created on the default remote origin and your local branch is configured to track that remote branch automatically, eliminating the need to specify the remote or branch in future git push or git pull commands. Which single command achieves this goal?

  • git push --force-with-lease origin hotfix/auth-timeout

  • git push -u origin hotfix/auth-timeout

  • git push -u hotfix/auth-timeout origin

  • git push origin hotfix/auth-timeout

CompTIA Linux+ XK0-006 (V8)
Automation, Orchestration, and Scripting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot