Swapna Kumar Panda
Swapna Kumar Panda

@swapnakpanda

20 تغريدة 1 قراءة Dec 07, 2022
💎 75+ GIT Interview Questions
Should be helpful in,
❍ Hacktoberfest
❍ Open-Source
❍ Private Projects
Level: Beginner to Medium
Topics:
➊ Introduction to VCS
➋ Introduction to GIT
➌ Repository
➍ Operations
➎ Branch
➏ Recover
➐ Differences
➑ Extra
➊ Introduction to VCS
➀ What is a Version Control System (VCS)?
➁ Explain a VCS with a diagram.
➂ What are the benefits of using a VCS?
➃ What is a distributed VCS?
➋ Introduction to GIT
➀ What is GIT?
➁ Explain the basic architecture of GIT.
➂ Explain the workflow in GIT.
➃ How is GIT better compared to a traditional VCS like Subversion (SVN)?
➄ What language is used in GIT?
➌ Repository
➀ What is a repository?
➁ What does a GIT repository contain?
➂ What is a remote repository?
➃ What is a local repository?
➄ What is a bare repository?
➅ How to create/initialize a repository?
➆ What is a clone? How to do it?
➇ What is a fork?
➈ What is "git config" command used for?
➍ Operations
➀ How to remove a file from git without removing it from your file system?
➁ What does "git add" command do?
➂ What does "git rm" command do?
➃ What is a Commit Message?
➄ What command is used for committing?
➅ What is an Index or a Staging Area? Why is it used?
➆ How to fix a broken commit?
➇ What does "git reset --mix" do?
➈ How do you squash the last N commits into a single commit?
➉ What is Push/Push Request?
➀➀ What does a Commit Object contain?
➀➁ How do you find a list of files that have changed in a particular commit?
➀➂ How would you return a commit that has just been pushed?
➀➃ What is "git pull" used for?
➀➄ What is "git pull origin" used for?
➀➅ What is Fetch?
➀➆ What is Merge?
➀➇ What is a merge conflict?
➀➈ Explain the different points when a merge can enter a conflicted stage.
20. How to resolve a conflict?
➁➀ What does "git merge --abort" do?
➁➁ What are different merge strategies?
➁➂ Explain fast forward merge strategy.
➁➃ Explain recursive merge strategy.
➁➄ Explain ours merge strategy.
➁➅ Explain octopus merge strategy.
➁➆ Explain resolve merge strategy.
➁➇ Explain subtree merge strategy.
➁➈ What is a Tag?
30. What does "git tag" do?
➂➀ What does "git checkout" do?
➂➁ What does "git checkout -b" do?
➂➂ What is a hook?
➂➃ What does a hook comprise of?
➎ Branch
➀ What is a branch?
➁ What is master?
➂ What is HEAD?
➃ What is main?
➄ How to create a branch?
➅ How to know if a branch has been combined into master?
➆ What does "git cherry-pick" do?
➇ What is Git Stash?
➈ What does "git stash apply" do?
➉ What does "git stash drop" do?
➀➀ What does "git stash list" does?
➀➁ How to delete a branch?
➏ Recover
➀ If you recover a deleted branch, what work is restored?
➁ What is "git reflog"?
➂ How to recover a deleted branch using "git reflog"?
➐ Differences
➀ HEAD vs Working Tree vs Index
➁ Pull vs Fetch
➂ Pull Request vs Push Request
➃ Pull Request vs Branch
➄ Fork vs Clone vs Branch
➅ "git remote add" vs "git clone"
➆ "git diff" vs "git status"
➇ "git merge" vs "git rebase"
➈ Fast Forward Merge vs Recursive Merge
➉ Revert vs Reset
➀➀ Git vs GitHub
➀➁ Git vs SVN
➑ Extra
➀ Describe the branching strategy.
➁ Why is it desirable to create an additional commit rather than amend an existing commit?
➂ How do you configure a repository to run code sanity checking tools before making commits, and prevent them if the test fails?
🚥 Disclaimer
⬘ A few of these questions were shared by me previously.
⬗ Apart from interviews, these questions may help you learn Git and use it in daily life.
⬙ You can't memorize all the Git commands. Practice and use it productively.
Hey 👋
I am a Tech Writer, Educator, and Mentor from India 🇮🇳, here sharing
✰ Tutorials
✰ Tricks
✰ Career Tips
✰ Cheat Sheets
✰ Interview Questions
✰ Roadmaps
on
➠ Web Development
➠ Data Structures and Algorithms
➠ Databases
Thanks for reading. 🙏

جاري تحميل الاقتراحات...