Home > Web Development > Quizzes > Git Fundamentals Test
Git Fundamentals Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 40% Most missed: “How would one add Remote Repositories?”
Git Fundamentals Test
Time left 00:00
25 Questions

1. Is possible to have a global .gitignore file?
2. What git commit option is equivalent to using both the -F and -e options?
3. What command creates a git repository in your current directory?
4. When pushing to a remote server - what is the only type of merge that is accepted by default?
5. How to display a list of configuration parameters?
6. What is the main branch of a git repo commonly called?
7. Which command deletes the branch named 'stinky' regardless of merge status ?
8. What is the command for switching branches?
9. Which command will effectively preview a merge without making any changes?
10. How do you set an existing local branch to track a remote branch?
11. Which of these two statements makes git use the file from the conflicting commit you are merging from?
12. What is the relationship between the --short and --dry-run options for git commit?
13. How is it possible to record a merge from branch 'oldBranch' into master without modifying master content?
14. What is the git diff option to show the diffs of unstaged changes?
15. How do you add all files in current directory to git repository?
16. Which command will show what revision and author last modified each line of a file?
17. What is the 'git status' option used to output the shortened project status?
18. What shortcut creates and checks out a branch simultaneously?
19. Which git rebase mode allows you to combine commits by 'squashing'?
20. Which command will move the changes from the last commit into in the stage area?
21. The following command does what; $ git commit -am 'Commit'
22. What is the command for viewing a list of recent commits?
23. What git feature allows you to embed separate repos?
24. Who invented Git?
25. How do you retrieve changes from a remote repo?