1. What is the command to set a global Git username?
2. How can you check the current Git user email?
3. What command is used to clone a remote repository?
4. How do you initialize a new Git repository?
5. What command adds all changes in the working directory to the staging area?
6. What is the command to view the status of your working directory?
7. Which Git area is known as the "staging area"?
8. How do you commit changes with a message?
9. Which command is used to push changes to a remote repository?
10. How do you view the commit history for a specific file?
11. How do you stash changes with a message?
12. Which command deletes a tag?
13. What command is used to view all branches?
14. Which command checks out a specific branch?
15. How do you merge two branches?
16. What is a merge conflict in Git?
17. How do you delete a local branch?
18. Why do we use the "git stash" command?
19. What command allows you to amend the last commit?
20. How can you apply changes from the stash?
21. How do you view all stashes in Git?
22. Which command reverts a previous commit without modifying the working directory?
23. How do you delete a remote branch?
24. What command pushes all tags to the remote repository?
25. How do you list all tags in a Git repository?
26. Why do we use tags in GitHub?
27. Why do we use a .gitignore file?
28. How can you fork a repository on GitHub?
29. What is a Personal Access Token (PAT) in Git?
30. What is the main difference between CVS and DVCS?
31. Which Git command would you use to display the commit history from the last 7 days?
32. How do you move only file1 to the staging area from the working directory?
33. How can you restore a file from the staging area to the working directory?
34. How can you check the logs of file9 and file45?
35. How can you check the logs for a specific user (e.g., user7)?
36. What happens if you don't configure user.name and user.email in Git?
37. How can you bring all commits from the feature branch to the main branch?
38. How do you retrieve a file from the 3rd commit?
39. What is the primary use of the `git cherry-pick` command?
40. How do you list all branches in a Git repository?
41. A user is unable to run git commands How to trouble shoot
42. There are 10000 commits in last 2 days but there is a requirement to check the commit history from 10AM to 2PM of current day how can I do it
43. There are 10000 commits in last 2 days but there is a requirement to check the commit history from 10AM to 2PM of yesterday how can I do it
44. There are 10000 commits in last 100 days but there is a requirement to check the commit history from 10AM to 2PM of yesterday how can I do it
45. What is a potential downside of using `git rebase`?
46. What is the best practice to avoid merge conflict
47. What is the best practice to merge feature branch code to main branch code?
48. Suppose you are a developer and needs to do some code changes in a program that is present in mainbranch how to make the changes
49. Suppose you are a writing a jenkins file and working on each stage you are making changes for the 5th time and you want to take keep all the changes done first to fourth time how would you work on it and needs to do some code changes in a program that is present in mainbranch how to make the changes
50. How can you find in which programming language the code is written of particular repo