Podcast
Questions and Answers
What command is used to remove all untracked files?
What command is used to remove all untracked files?
- git cherry-pick dad47ed
- git reset --hard HEAD^
- git restore --source=HEAD~2
- git clean -fd (correct)
Which command is used to view the history along with the list of modified files?
Which command is used to view the history along with the list of modified files?
- git log --stat (correct)
- git log hash1..hash2
- git log -3
- git log --before=“2020-08-17”
How can you find the commits that touched a specific file?
How can you find the commits that touched a specific file?
- git shortlog
- git cherry-pick dad47ed
- git blame file.txt (correct)
- git log --pretty=format:”%an committed %H”
Which command is used to create and switch to a new branch?
Which command is used to create and switch to a new branch?
What does 'git bisect' help in finding?
What does 'git bisect' help in finding?
Which command is used to delete all stashes?
Which command is used to delete all stashes?
What does 'git merge --no-ff' do?
What does 'git merge --no-ff' do?
What does 'git rebase master' command do?
What does 'git rebase master' command do?
'git push origin v1.0' is used for?
'git push origin v1.0' is used for?
'git remote rm upstream' is used for?
'git remote rm upstream' is used for?