Total Questions : 40
Expected Time : 40 Minutes

1. What does 'git merge' do?

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

3. Explain the difference between 'git fetch' and 'git pull.'

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

5. How do you remove untracked files in Git?

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

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

8. What is a 'commit' in Git?

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

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

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

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

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

14. How do you resolve a Git merge conflict?

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

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

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

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

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

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

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

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

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

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

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

26. What does 'git branch' show?

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

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

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

30. What does 'git checkout' do?

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

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

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

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

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

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

37. How do you rename a Git branch?

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

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

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