Total Questions : 30
Expected Time : 30 Minutes

1. What is 'git remote' and how is it used in a Git repository?

2. What is 'git rebase --onto' used for, and provide a scenario where it might be beneficial?

3. What is the purpose of 'git stash' and when might you use it?

4. What is 'git revert -n' used for, and how does it differ from a regular 'git revert'?

5. How do you add changes to the staging area in Git?

6. What is a 'rebase' operation in Git, and how does it differ from a 'merge'?

7. What is 'git rebase --exec' used for, and how can it be beneficial?

8. Explain the concept of 'git fetch --prune' and its significance in Git.

9. What does 'git pull' do?

10. How do you create a new branch without switching to it?

11. What is 'git rerere' used for, and how does it assist in resolving merge conflicts?

12. Explain the purpose and potential risks of 'git gc --prune' in Git repository maintenance.

13. Explain the concept of 'git sparse-checkout' and when it might be beneficial.

14. How do you create a Git repository on GitHub?

15. Which command is used to view the commit history in Git?

16. How does 'git revert' handle conflicts, and how can conflicts be resolved?

17. How does 'git worktree add' enhance workspace management in Git, and when might it be beneficial?

18. What is 'git stash -p' used for, and how does it differ from a regular 'git stash'?

19. Explain the purpose of 'git push --force' and when it should be used with caution.

20. Explain the concept of 'git squash' and how it is different from a regular commit.

21. What is a 'commit' in Git?

22. How do you revert a Git commit?

23. How do you rename a Git branch?

24. How does 'git bundle' work, and in what scenarios might it be beneficial?

25. Explain the concept of 'git hooks' and provide an example use case.

26. What is 'git revert -m' used for, and in what scenario might it be applicable?

27. What is the purpose of 'git fetch'?

28. What is 'git worktree lock' used for, and how can it be beneficial in Git workspace management?

29. How do you discard changes in a Git repository?

30. Explain the concept of 'git rebase --skip' and in what scenario might it be applicable?