Interview Q&A

Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.

4616 total questions 4516 technical 100 career & HR 4346 from PDF library

Showing 76–100 of 287

Career & HR topics

By tech stack

Mid PDF
How do you automate semantic versioning and changelog generation using Git tags?

Semantic Versioning (SemVer) follows the format: MAJOR.MINOR.PATCH Example: v2.3.1 It’s based on changes — breaking changes bump MAJOR, new features bump MINOR, and bug fixes bump PATCH. utomation tools: semantic-release…

Version Control Read answer
Mid PDF
Verify commit history.?

Clean and optimize the repository: git gc --aggressive What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (performance, maintainability, security, cost) When you w…

Version Control Read answer
Mid PDF
Add and continue:?

git add . git merge --continue # or git rebase --continue What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (performance, maintainability, security, cost) When yo…

Version Control Read answer
Mid PDF
This creates a new branch from that commit and keeps your work safe.?

Answer: Example: You checked out an old commit for debugging: git checkout a1b2c3d Then made edits and committed — but forgot to make a new branch. Create one before switching back, or you’ll lose that work. What intervi…

Version Control Read answer
Mid PDF
Identify the commit before the force push.?

Answer: Create a branch to restore it: git checkout -b recovery-branch <commit-hash> What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (performance,…

Version Control Read answer
Mid PDF
How do you recover a deleted branch?

If you deleted a branch accidentally but haven’t run garbage collection yet, it can be recovered using the commit log. Steps: Find the last commit of that branch: git reflog Example output: bc1234 refs/heads/feature/logi…

Version Control Read answer
Mid PDF
Resolve conflicts manually — look for markers like:?

Answer: <<<<<<< HEAD Your changes ======= Incoming changes >>>>>>> main What interviewers expect A clear definition tied t…

Version Control Read answer
Mid PDF
How do you handle large binary files in Git?

Large binary files (like images, videos, or data models) bloat Git repositories since Git stores every version. To handle them efficiently, I use Git LFS (Large File Storage). Setup: git lfs install git lfs track "*.psd"…

Version Control Read answer
Mid PDF
How do you undo a commit that has already been pushed?

If a commit has been pushed to a shared branch, the safest way is to revert it — not remove it. git revert <commit-hash> This creates a new commit that undoes the changes from the old one, without rewriting history…

Version Control Read answer
Mid PDF
Real-world example:?

Answer: You deleted feature/payment after merging, but QA needs it again — you can restore it from git reflog. What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (…

Version Control Read answer
Mid PDF
How do you create and switch to a new branch?

You can create and switch to a new branch using: git checkout -b feature/login-page This creates a branch named feature/login-page and switches you to it immediately. lternatively, you can do it in two steps: git branch…

Version Control Read answer
Mid PDF
DVCS explained?

Answer: A system where every developer has a full copy of the repository, including its entire history, allowing for offline work and decentralized collaboration. What interviewers expect A clear definition tied to Versi…

Version Control Read answer
Mid PDF
What are signed commits (git commit -S), and why use them?

Answer: Signed commits ensure authenticity — they’re cryptographically verified with a GPG or SSH key, proving the commit really came from you and wasn’t tampered with. Setup: Generate a GPG key: gpg --full-generate-key…

Version Control Read answer
Mid PDF
Explain the difference between git merge and git rebase.

Both commands integrate changes from one branch into another, but they work differently: git merge combines the histories of two branches, creating a new “merge commit.” git rebase rewrites history by placing your branch…

Version Control Read answer
Mid PDF
What are the key areas of a Git project? (Working Directory, Staging

rea, Repository) Working Directory: This is where you make changes to the files. It's your local workspace where you're actively editing code. Staging Area (Index): This is like a holding area where you prepare files bef…

Version Control Read answer
Mid PDF
Git file states? Working Directory (modified files), Staging Area (files marked for

next commit), Local Repository (committed files). What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (performance, maintainability, security, cost) When you would…

Version Control Read answer
Mid PDF
Never echo secrets in logs?

Answer: Mask secrets automatically using: run: echo "Deploying..." && echo "${{ secrets.AWS_SECRET_KEY }}" GitHub automatically redacts these values from logs. What interviewers expect A clear definition…

Version Control Read answer
Mid PDF
On GitHub:?

You’ll see a green “Verified” badge on signed commits. Why it matters: Verifies authorship for open-source contributions. Helps in regulated environments (e.g., fintech, healthcare). Prevents supply chain attacks via spo…

Version Control Read answer
Mid PDF
What are signed commits (git commit -S), and why use them? Follow:

Answer: Signed commits ensure authenticity — they’re cryptographically verified with a GPG or SSH key, proving the commit really came from you and wasn’t tampered with. Setup: Generate a GPG key: gpg --full-generate-key…

Version Control Read answer
Mid PDF
Push to a new Git remote (e.g., GitHub):?

git remote add origin git push --all origin git push --tags origin What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (performance, maintainability, security, cost…

Version Control Read answer
Mid PDF
Delete old branches with redundant history.?

Prune and repack: git gc --prune=now --aggressive What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (performance, maintainability, security, cost) When you would…

Version Control Read answer
Mid PDF
A teammate force-pushed to main and overwrote commits — how do you recover?

Answer: A force push can rewrite history and make commits disappear from the remote branch — but they’re often recoverable. Steps: Run git reflog locally to view all commit references: git reflog show origin/main What in…

Version Control Read answer
Mid PDF
Permanently scrub it from history using:?

git filter-repo (preferred) git filter-repo --path path/to/file --invert-paths What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (performance, maintainability, se…

Version Control Read answer
Mid PDF
Add and commit resolved files:?

git add . git commit git push What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (performance, maintainability, security, cost) When you would and would not use it…

Version Control Read answer
Mid PDF
What are submodules in Git, and when would you use them?

A Git submodule is a repository inside another repository — useful for including shared components or libraries. Example: You have multiple microservices that share a common authentication library. Instead of duplicating…

Version Control Read answer

Git & GitHub Developer Essentials · Version Control

Semantic Versioning (SemVer) follows the format:

MAJOR.MINOR.PATCH

Example: v2.3.1

It’s based on changes — breaking changes bump MAJOR, new features bump

MINOR, and bug fixes bump PATCH.

utomation tools:

  • semantic-release (Node.js)
  • GitVersion (for .NET)
  • release-please (Google’s tool for GitHub Actions)

Example using semantic-release:

npm install semantic-release @semantic-release/git

@semantic-release/github -D

Create a .releaserc.json:

{

"branches": ["main"],

"plugins": [

"@semantic-release/commit-analyzer",

"@semantic-release/release-notes-generator",

"@semantic-release/changelog",

"@semantic-release/github",

"@semantic-release/git"

}

What it does:

  • Reads commit messages (feat:, fix:, breaking:)
  • Calculates next version automatically
  • Creates a Git tag (e.g., v1.2.0)
  • Updates CHANGELOG.md
  • Publishes release notes to GitHub

Example output:

chore(release): 1.3.0

  • feat: add dark mode toggle
  • fix: resolve login error
Permalink & share

Git & GitHub Developer Essentials · Version Control

Clean and optimize the repository: git gc --aggressive

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

git add . git merge --continue # or git rebase --continue

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Answer: Example: You checked out an old commit for debugging: git checkout a1b2c3d Then made edits and committed — but forgot to make a new branch. Create one before switching back, or you’ll lose that work.

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Answer: Create a branch to restore it: git checkout -b recovery-branch <commit-hash>

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

If you deleted a branch accidentally but haven’t run garbage collection yet, it can be

recovered using the commit log.

Steps:

Find the last commit of that branch:

git reflog

Example output:

bc1234 refs/heads/feature/login: commit: Add login validation

Permalink & share

Git & GitHub Developer Essentials · Version Control

Answer: <<<<<<< HEAD Your changes ======= Incoming changes >>>>>>> main

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Large binary files (like images, videos, or data models) bloat Git repositories since Git

stores every version.

To handle them efficiently, I use Git LFS (Large File Storage).

Setup:

git lfs install

git lfs track "*.psd"

git add .gitattributes

git commit -m "Track Photoshop files with Git LFS"

Explanation:

Git LFS replaces large files with lightweight text pointers inside Git, while the actual binary

files are stored on a separate LFS server.

Example:

If a game project has large texture files, Git LFS prevents the repo from becoming gigabytes

in size, improving clone and fetch performance.

Permalink & share

Git & GitHub Developer Essentials · Version Control

If a commit has been pushed to a shared branch, the safest way is to revert it — not

remove it.

git revert <commit-hash>

This creates a new commit that undoes the changes from the old one, without rewriting

history.

Example:

If you pushed a buggy commit that broke the login page, git revert creates a new

commit that removes those buggy changes while keeping the history intact.

⚠ Avoid git reset on shared branches because it rewrites history — it can

mess up others’ work.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Answer: You deleted feature/payment after merging, but QA needs it again — you can restore it from git reflog.

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

You can create and switch to a new branch using:

git checkout -b feature/login-page

This creates a branch named feature/login-page and switches you to it immediately.

lternatively, you can do it in two steps:

git branch feature/login-page

git checkout feature/login-page

Real-world example:

If your team assigns you to build a login page, you can create a branch

feature/login-page to isolate your changes from the main code.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Answer: A system where every developer has a full copy of the repository, including its entire history, allowing for offline work and decentralized collaboration.

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Answer: Signed commits ensure authenticity — they’re cryptographically verified with a GPG or SSH key, proving the commit really came from you and wasn’t tampered with. Setup: Generate a GPG key: gpg --full-generate-key

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Both commands integrate changes from one branch into another, but they work differently:

  • git merge combines the histories of two branches, creating a new “merge commit.”
  • git rebase rewrites history by placing your branch’s commits on top of another

branch, making it look like you developed your changes sequentially.

Real-world analogy:

  • Merge: Like combining two storylines into one — you keep both histories.
  • Rebase: Like rewriting your story so it appears you followed the main storyline all

long.

Example:

If your feature branch has diverged from main, merging will keep both timelines, while

rebasing will make it look like your branch was based on the latest main version all along.

Permalink & share

Git & GitHub Developer Essentials · Version Control

rea, Repository)

  • Working Directory: This is where you make changes to the files. It's your local

workspace where you're actively editing code.

  • Staging Area (Index): This is like a holding area where you prepare files before

committing them to the repository. You can choose which changes to add here.

  • Repository: This is where Git stores the project’s history (commits). It's the

permanent record of your project's evolution.

Real-World Example:

When you're editing code, it starts in the working directory. After editing, you "stage" your

changes (using git add), which moves them to the staging area. Once you're ready to

save your changes permanently, you commit them to the repository using git commit.

Permalink & share

Git & GitHub Developer Essentials · Version Control

next commit), Local Repository (committed files).

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Answer: Mask secrets automatically using: run: echo "Deploying..." &amp;&amp; echo "${{ secrets.AWS_SECRET_KEY }}" GitHub automatically redacts these values from logs.

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

You’ll see a green “Verified” badge on signed commits.

Why it matters:

  • Verifies authorship for open-source contributions.
  • Helps in regulated environments (e.g., fintech, healthcare).
  • Prevents supply chain attacks via spoofed commits.

Real-world example:

In a security-conscious org, all commits to the main branch are required to be

GPG-signed — GitHub enforces this with branch protection rules.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Answer: Signed commits ensure authenticity — they’re cryptographically verified with a GPG or SSH key, proving the commit really came from you and wasn’t tampered with. Setup: Generate a GPG key: gpg --full-generate-key

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

git remote add origin git push --all origin git push --tags origin

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Prune and repack: git gc --prune=now --aggressive

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

Answer: A force push can rewrite history and make commits disappear from the remote branch — but they’re often recoverable. Steps: Run git reflog locally to view all commit references: git reflog show origin/main

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

git filter-repo (preferred) git filter-repo --path path/to/file --invert-paths

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

git add . git commit git push

What interviewers expect

  • A clear definition tied to Version Control in Git & GitHub projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Git & GitHub application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Git & GitHub architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Git & GitHub Developer Essentials · Version Control

A Git submodule is a repository inside another repository — useful for including shared

components or libraries.

Example:

You have multiple microservices that share a common authentication library. Instead of

duplicating it, you include it as a submodule:

git submodule add

libs/auth

Pros: Keeps shared code centralized.

Cons: Requires careful syncing; new contributors must initialize submodules using:

git submodule update --init --recursive

Permalink & share
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details