Recall & Review
beginner
What does the command
git init do?It creates a new, empty Git repository in the current folder, allowing you to start tracking files with Git.
Click to reveal answer
beginner
Where does
git init create the repository data?It creates a hidden folder named
.git inside the current directory to store all version control information.Click to reveal answer
intermediate
True or False: Running
git init in an existing Git repository will delete previous history.False. Running
git init in an existing repository will not delete history; it reinitializes the repository.Click to reveal answer
beginner
What is the first step to start tracking a project with Git?
Navigate to your project folder and run
git init to create a new Git repository.Click to reveal answer
beginner
After running
git init, what command can you use to check the repository status?Use
git status to see which files are tracked, untracked, or staged.Click to reveal answer
What is created inside your folder when you run
git init?✗ Incorrect
Running git init creates a hidden .git folder that stores all Git data.
Which command starts a new Git repository in your current directory?
✗ Incorrect
git init initializes a new Git repository.
If you want to track changes in a folder, what should you do first?
✗ Incorrect
First, run git init to create a repository before tracking changes.
True or False:
git init connects your folder to a remote repository automatically.✗ Incorrect
git init only creates a local repository; connecting to remote requires extra steps.
What command shows the current state of your Git repository after
git init?✗ Incorrect
git status shows which files are tracked, untracked, or staged.
Explain the purpose and effect of running
git init in a project folder.Think about what Git needs to start tracking your files locally.
You got /4 concepts.
Describe the steps you take to start version controlling a new project using Git.
Focus on the commands from starting to tracking files.
You got /4 concepts.