CompTIA Linux+ XK0-006 (V8) Practice Question

During the setup of a new internal Git server, you must create an empty repository named inventory.git inside /srv/git so that developers can push to it over SSH. The organization's policy also demands that the initial branch be called main rather than the historical master. Which single git init command meets both requirements?

  • git init --initial-branch=main /srv/git/inventory.git

  • git init --branch main --bare /srv/git/inventory.git

  • git init --bare --initial-branch=main /srv/git/inventory.git

  • git init --bare /srv/git/inventory.git && git branch -m main

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