Total Questions : 50
Expected Time : 50 Minutes

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

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

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

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

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

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

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

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

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

10. What does 'git rebase' do?

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

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

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

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

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

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

17. What is 'git worktree' used for, and how can it be beneficial in a Git repository?

18. What is a 'commit' in Git?

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

20. What does 'git branch' show?

21. Explain the purpose and potential risks of 'git bisect reset' in Git.

22. Explain the concept of 'git bundle verify' and how it contributes to repository integrity.

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

24. Which Git command is used to clone a remote repository?

25. Explain the concept of 'git blame' and how it can be useful.

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

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

28. What is the purpose of 'git stash'?

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

30. How do you resolve a Git merge conflict?

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

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

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

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

35. How can you retrieve a file from a specific commit without changing the current branch?

36. What is the purpose of 'git init'?

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

38. How do you remove untracked files in Git?

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

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

41. Explain the purpose of 'git cherry-pick' and when it is commonly used.

42. How do you revert a Git commit?

43. What is the purpose of 'git rebase -i' and how is it used?

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

45. What does 'git checkout' do?

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

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

48. What is the purpose of 'git sparse-checkout set' and how can it be used effectively?

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

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