JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Git interview questions
Git interview questions
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 5
1. Which of the following is the correct way to initialize a new Git repository?
A. git add
B. git init
C. git commit
D.
Show Correct Answer
Correct Answer is :
git init
2. What's the git command that downloads your repository from GitHub to your computer?
A. git push
B. git fork
C. git clone
D. 3
Show Correct Answer
Correct Answer is :
FALSE
3. We've just created a new file called index.html. Which of the following will stage this one file so we can commit it?
A. git add index.html
B. git add new
C. git commit index.html
D.
Show Correct Answer
Correct Answer is :
git add index.html
4. How do you save the current state of your code into the git version control?
A. By committing the staged changes with git commit
B. By adding all changes and staging them with git stage
C. By adding all changes and staging them with git add
D. By creating a new commit with git init
Show Correct Answer
Correct Answer is :
By committing the staged changes with git commit
5. What is the correct commit syntax for all changes with a message?
A. git message -am "I'm coding"
B. git add -a "I'm coding"
C. git commit -a "I'm coding"
D. git commit -am "I'm coding"
Show Correct Answer
Correct Answer is :
git commit -am "I'm coding"
Similar Interview Questions
Search for latest jobs
Find Jobs