Total Questions : 50
Expected Time : 50 Minutes

1. How do you remove untracked files in Git?

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

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

4. How do you switch to the previous branch in Git?

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

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

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

8. What does 'git pull' do?

9. Which command is used to check the status of your Git repository?

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

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

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

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

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

15. How do you rename a Git branch?

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

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

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

19. What is a 'commit' in Git?

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

21. Explain the significance of the 'git bisect' command in Git.

22. What does 'git rebase' do?

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

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

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

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

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

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

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

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

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

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

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

34. What is 'git rerere gc' used for, and how can it be beneficial in Git?

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

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

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

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

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

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

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

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

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

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

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

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

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

48. How do you undo the last Git commit?

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

50. How do you resolve a Git merge conflict?