GIT Interview Questions

1️⃣ Introduction to VCS
2️⃣ Introduction to GIT
3️⃣ Repository
4️⃣ Operations
5️⃣ Branch
6️⃣ Recover
7️⃣ Differences
8️⃣ Extra
1️⃣ 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?
2️⃣ Introduction to GIT

✪ What is GIT?
✪ Explain the basic architecture of GIT.
✪ Explain the workflow in GIT.
✪ How is GIT better comparing to a traditional VCS like Subversion (SVN)?
✪ What language is used in GIT?
3️⃣ 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/initialise a repository?
✪ What is a clone? How to do it?
✪ What is a fork?
✪ What is "git config" command used for?
4️⃣ 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.
✪ How to resolve a conflict?
✪ What does "git merge --abort" do?
✪ What is a Tag?
✪ 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?
5️⃣ 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?
6️⃣ Recover

✪ If you recover a deleted branch, what work is restored?
✪ What is "git reflog"?
✪ How to recover a deleted branch using "git reflog"?
7️⃣ 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"
✪ Revert vs Reset
✪ Git vs GitHub
✪ Git vs SVN
8️⃣ Extra

✪ Describe the branching strategy
✪ Why is it desirable to create an additional commit rather than amending an existing commit?
✪ How do you configure a repository to run code sanity checking tools right before making commits, and preventing them if the test fails?
Here, we come to the end of this 🧵.

Today, it's the festival of lights in India 🇮🇳 and some other countries. We call it "Diwali". We celebrate it to bring lightness by removing darkness.

I wish everyone a happy Diwali. May this bring all the lightness in your life.
Joke:

Those who like to work in "Dark Mode", will they celebrate "Diwali" or not? 😝
I have tried to cover most of the topics in this thread.

If you find anything is missing, feel free to add that in the reply. It would help everyone. 🙏
Hello Pythonistas, 👇 is for you all

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Swapna Kumar Panda ✨

Swapna Kumar Panda ✨ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @swapnakpanda

3 Nov
SQL & RDBMS Interview Questions

Series: 1️⃣
Level: Beginner
Topics:

1️⃣ Introduction to RDBMS
2️⃣ Normalisation
3️⃣ Introduction to SQL
4️⃣ Tables and Fields
5️⃣ Constraints
6️⃣ Index
7️⃣ DML Operations
8️⃣ Joins
9️⃣ Set Operations
1️⃣ Introduction to RDBMS

✪ What is a Database?
✪ What are different types of Databases?
✪ What is DBMS?
✪ What is difference between Database and DBMS?
✪ What is RDBMS?
✪ Which are popular RDBMS vendors?
✪ What is ACID property in Database?
Read 15 tweets
2 Nov
💡 Are you a programmer? How do you approach while solving a problem?

A must-read for beginners.

🧵 👇
P.S: This thread is not meant to teach you about any specific approach. Rather I would give more emphasis on "understanding what is asked" and "how to program it efficiently".
✪ Problem 1️⃣

Let's take "Printing the Asterisks" problem. It's simple, yet tricky sometimes.

Print below on screen


✪✪
✪✪✪
✪✪✪✪
✪✪✪✪✪
Read 16 tweets
1 Nov
🔥 Data Structures you should be knowing as a Web Developer

👉 HTML + CSS + JavaScript : 😢🥺
👉 + Data Structures : 💯 ✅ 💪

🧵 👇
We will be discussing about

👉 data structures
👉 their example use case in UI
👉 what operations to know

Data structures are,

1️⃣ Array
2️⃣ Set
3️⃣ Stack
4️⃣ Queue
5️⃣ Hash Table
6️⃣ Tree

✪ ✪ ✪
1️⃣ Array

Without an Array, no web development is possible. List of items are stored inside Array.

So you should be knowing

✪ Creating an Array
✪ Iterating
✪ Find an Element
✪ Insert Element(s)
✪ Delete Element(s)
✪ Filter an Array
✪ Fetch a Sub-Array
✪ Merging Arrays
Read 11 tweets
1 Nov
React Interview Questions

Series: 1️⃣
Level: Beginner
Topics:

1️⃣ Introduction
2️⃣ JSX
3️⃣ Virtual DOM
4️⃣ Component
5️⃣ States and Props
6️⃣ Data Binding
7️⃣ Component Rendering
8️⃣ Hooks Introduction
1️⃣ Introduction

✪ What is React?
✪ What is the current version of React?
✪ What are core features of React?
✪ What are advantages using React?
✪ Where shouldn't we use React?
✪ What is SPA?
✪ When will a SPA run slower/faster?
Read 13 tweets
31 Oct
💡 Why is below expression in Python evaluated to "True"?

→→ not False == True is not True == True ←←

Originally Asked By: @DataIlm

I will try to answer this one in the easiest possible way.

🧵 👇
2 important things we need to understand while solving this one.

1️⃣ Operator Precedence
2️⃣ Operator Associativity
1️⃣ Operator Precedence

✪ Logical 'not' operator has "lower precedence" than Comparison Operators (here '==') and Identity Operators (here 'is not').

✪ Comparison Operators and Identity Operators have same precedence.
Read 12 tweets
31 Oct
🔀 Shuffle a List in JavaScript and Python

You can build

👉 your own shuffled playlist like in Spotify
👉 a game of cards
👉 a lottery picker app
👉 and what not

How? 🧵 👇
1️⃣ What is Shuffle?

✪ Shuffle is like sorting where it reorders the original list of elements.

✪ But unlike sorting, shuffle doesn't define any specific rule how to order these elements. Output is always non-predictive.
2️⃣ How does Shuffle work?

✪ As output is non-predictive, hence there is some randomness.

✪ So the algorithm we will write need to have randomness included.
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(