Git Knowledge Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 61% Most missed: “In Git, how do you delete all the stashes?”

Git, which stands for Global Information Tracker is a distributed version control system that tracks changes in any set of computer files, usually used for coordinating work among programmers who are collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows.

The name "git" was given by Linus Torvalds when he wrote the very first version.

Git Knowledge Test
Time left 00:00
25 Questions

1. In Git, how do you push changes from the main branch of a local Git repository to a remote repository (origin)?
2. In Git, how can you add color to git command outputs?
3. In Git, how do you do a force push?
4. In Git, how can you create a new branch and switch to it?
5. In Git, how do you delete a single stash?
6. In Git, how can you delete a branch from a repository?
7. How does Git know that changes have been made to a file?
8. What is the committed state in Git?
9. In Git, what command is used to revert changes?
10. In Git, how can you save uncommitted changes on your local machine so you can work on it later?
11. In Git, how do you add all of the files in the local Git repository?
12. In Git, how can you check for the status of your working directory?
13. What is the purpose of the 'git branch' command in Git?
14. In Git, how do you create a connection between a local repository and a remote one?
15. How do you change the latest commit message in Git?
16. In Git, how can you see the current status of the current branch?
17. In Git, what does a good commit message look like?
18. In Git, how do you check for the version of Git installed on your machine?
19. In Git, how can you change the text editor used to write commit messages?
20. In Git, how do you clone a remote repository?
21. In Git, which command is used to list differences between your current working directory and your staging area?
22. In Git, how do you rename the current branch?
23. Which git command allows you to download objects and refs from another repository without committing to the main branch?
24. What is Git?
25. In Git, how do you create a new branch and switch to it?