0
0
Gitdevops~5 mins

Creating a repository with git init - Quick Revision & Summary

Choose your learning style9 modes available
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?
AA remote repository on GitHub
BA new file named <code>git.txt</code>
CA backup of your project
DA hidden <code>.git</code> folder
Which command starts a new Git repository in your current directory?
Agit init
Bgit start
Cgit create
Dgit new
If you want to track changes in a folder, what should you do first?
ARun <code>git clone</code>
BRun <code>git commit</code>
CRun <code>git init</code>
DRun <code>git push</code>
True or False: git init connects your folder to a remote repository automatically.
AFalse
BOnly if you add a remote URL
CTrue
DOnly on GitHub
What command shows the current state of your Git repository after git init?
Agit log
Bgit status
Cgit branch
Dgit remote
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.