Podcast
Questions and Answers
How can you view the list of modified files in Git history?
How can you view the list of modified files in Git history?
- git log --grep='GUI'
- git log --before='2020-08-17'
- git log --stat (correct)
- git log -3
Which command should you use to remove all untracked files in a Git repository?
Which command should you use to remove all untracked files in a Git repository?
- git stash clear
- git clean -fd (correct)
- git branch bugfix
- git checkout master
What is the Git command to tag the last commit as 'v1.0'?
What is the Git command to tag the last commit as 'v1.0'?
- git tag -d v1.0
- git tag v1.0 (correct)
- git tag v1.0 5e7a828
- git tag
How do you show the author of each line in a specific file in Git?
How do you show the author of each line in a specific file in Git?
Which Git command allows you to create a merge commit even if Fast Forward is possible?
Which Git command allows you to create a merge commit even if Fast Forward is possible?
How can you view remote tracking branches in Git?
How can you view remote tracking branches in Git?
'git stash push -m 'New tax rules'' is used for what purpose in Git?
'git stash push -m 'New tax rules'' is used for what purpose in Git?
'git bisect reset' is used for what purpose?
'git bisect reset' is used for what purpose?
'git restore --source=HEAD~2 file.js' is used for what purpose?
'git restore --source=HEAD~2 file.js' is used for what purpose?
Which Git command is used to apply the changes from a specific stash to the working directory?
Which Git command is used to apply the changes from a specific stash to the working directory?
How can you delete all stashes in a Git repository?
How can you delete all stashes in a Git repository?