Total Questions : 50
Expected Time : 50 Minutes

1. What is 'git gc' used for, and how does it impact Git repository maintenance?

2. What is the purpose of '.gitignore'?

3. What is 'git reflog,' and how can it be helpful in Git?

4. Explain the concept of 'git worktree remove' and when it might be useful in Git workspace management.

5. What is the purpose of 'git log --graph' and when might you use it?

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

7. What is the purpose of 'git merge'?

8. What is the purpose of 'git log'?

9. How do you remove untracked files in Git?

10. Explain the use case and potential risks of 'git reflog delete' in Git.

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

12. What does 'git commit' do in Git?

13. What does 'git pull' do?

14. In Git, what is a 'conflict'?

15. Explain the concept of 'git filter-branch' and its applications in Git history manipulation.

16. Explain the purpose of 'git submodules' and when you might use them.

17. What does 'git checkout' do?

18. What is 'git reflog show' used for, and how can it be beneficial in Git?

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

20. How does 'git rerere diff' contribute to resolving merge conflicts, and when might it be useful?

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

22. Explain the purpose and potential risks of 'git reflog expire --expire=now' in Git.

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

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

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

26. Explain the use case and potential issues related to 'git rerere forget' in Git.

27. Which Git command is used to create a new branch?

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

29. Explain the benefits of using 'git rebase' over 'git merge.'

30. What is 'git revert' used for, and how does it differ from 'git reset'?

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

32. Explain the concept of 'git sparse-checkout init' and its use in working with sparse repositories.

33. How do you show the changes between two Git commits?

34. What is the purpose of 'git push'?

35. How do you undo the last Git commit?

36. Explain the purpose of 'git tag' and how it can be useful in version control.

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

38. How do you resolve a merge conflict in Git using a graphical tool?

39. What does 'git rebase' do?

40. What is the purpose and potential risks of 'git rebase --autostash'?

41. What does 'git merge' do?

42. What does 'git remote -v' show?

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

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

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

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

47. Which command is used to create a new branch and switch to it?

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

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

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