10 Questions
What command is used to remove all untracked files?
git clean -fd
Which command is used to view the history along with the list of modified files?
git log --stat
How can you find the commits that touched a specific file?
git blame file.txt
Which command is used to create and switch to a new branch?
git switch -C bugfix
What does 'git bisect' help in finding?
Bad and good commits in a range
Which command is used to delete all stashes?
git stash clear
What does 'git merge --no-ff' do?
Creates a merge commit even if fast-forward is possible
What does 'git rebase master' command do?
Changes the base of the current branch to master
'git push origin v1.0' is used for?
'Pushing tag v1.0 to origin'
'git remote rm upstream' is used for?
'Removing remote upstream'
Learn the essential Git commands for creating snapshots, browsing history, branching & merging, collaboration using Git & GitHub, and rewriting history. This cheat sheet covers all the crucial commands needed for mastering Git.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free