Git interview questions

Git interview questions

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?

Correct Answer is : git init

2. What's the git command that downloads your repository from GitHub to your computer?

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?

Correct Answer is : git add index.html

4. How do you save the current state of your code into the git version control?

Correct Answer is : By committing the staged changes with git commit

5. What is the correct commit syntax for all changes with a message?

Correct Answer is : git commit -am "I'm coding"

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon