GitHub MCQ Test 1

GitHub MCQ Test: GitHub MCQs - Practice Questions



Total Questions : 30
Expected Time : 30 Minutes

1. What is the purpose of 'git rebase'?

2. Which command is used to clone a repository in Git?

3. What does the 'git cherry-pick' command do?

4. What is a 'merge conflict' in Git?

5. What is the primary purpose of GitHub?

6. How can you check the differences between your local branch and a remote branch?

7. What is 'git reflog' used for?

8. Explain the purpose of 'git stash.'

9. What does a 'GitHub Actions' workflow do?

10. Which command is used to view the commit history?

11. How does 'git rebase -i' differ from 'git rebase'?

12. Explain the difference between 'rebase' and 'merge' in Git.

13. What does the term 'repository' refer to in GitHub?

14. What is the purpose of 'git cherry'?

15. What is 'git bisect' used for in Git?

16. What is the difference between 'git pull' and 'git fetch'?

17. How can you revert a commit that has been pushed and shared with others?

18. What is a 'detached HEAD' state in Git?

19. How do you switch to a different branch in Git?

20. Which command is used to push changes to a remote repository?

21. What is the purpose of 'git filter-branch'?

22. Explain the concept of 'git submodules.'

23. How do you initialize a new Git repository?

24. What is the purpose of a 'merge' in Git?

25. What is the primary purpose of GitHub Pages?

26. In GitHub, what does a 'star' on a repository indicate?

27. What does the term 'fork' mean in GitHub?

28. What is a 'pull request' used for?

29. What is a 'commit' in Git?

30. What is the default branch name in a new Git repository?