Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.
Answer: ccess them in workflows: env: WS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (performance, maintaina…
Answer: <<<<<<< HEAD your code ======= incoming code >>>>>>> branch What interviewers expect A clear definition tied to Ve…
My preferred strategy depends on the project type and team size: For large enterprise projects with planned releases → I prefer Git Flow. Branches: main, develop, feature/*, release/*, hotfix/* Benefits: Organized releas…
source code during software development. 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…
Answer: Store tokens (like AWS_ACCESS_KEY, DOCKER_TOKEN) in → Settings > Secrets and variables > Actions Access them in workflows: env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} What interviewers…
Answer: git config --global user.signingkey <key-id> git config --global commit.gpgsign true What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (perf…
Integration means connecting your Git repository to your CI/CD system so every push, pull request, or tag triggers an automated build, test, and deploy pipeline. ✅ Jenkins Integration Install the Git plugin in Jenkins. C…
git cherry-pick <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 wo…
git switch -c hotfix/save-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 i…
git checkout -b feature/login abc1234 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 no…
Answer: dashboard). → This prevents misuse. Remove the secret from code: git rm --cached path/to/file git commit -m "Remove sensitive file" What interviewers expect A clear definition tied to Version Control in Git &…
Answer: Accidentally pushing secrets (API keys, passwords, tokens) is serious — even if you delete them, they may still exist in commit history. Steps to fix it: What interviewers expect A clear definition tied to Versio…
git merge 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 prod…
After initializing a Git repo locally (git init), you can connect it to a remote repository (like one on GitHub) using: git remote add origin Then push your code: git push -u origin main Explanation: origin is just a nic…
Answer: Mark the conflicting sections in your file: <<<<<<< HEAD your current branch code ======= incoming branch code >>>>>>&…
A Git tag marks specific points in a repository’s history — usually to label release versions (like v1.0, v2.1, etc.). It’s like a snapshot that says, “this commit is stable and ready to release.” Types of tags: Lightwei…
Answer: <<<<<<< HEAD current branch code ======= incoming branch code >>>>>>> feature/contact-form What interviewers expec…
A branch in Git is like a separate line of development — a parallel universe for your code. It llows you to work on new features, bug fixes, or experiments without affecting the main codebase (usually called the main or…
Git is a distributed version control system (VCS) that allows multiple developers to work on project without overwriting each other's work. It's designed to be fast, flexible, and scalable, allowing developers to track c…
Answer: A distributed version control system (DVCS) for tracking changes in source code during software development. What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-…
git checkout wrong-branch git reset --hard HEAD~2 What interviewers expect A clear definition tied to Version Control in Git & GitHub projects Trade-offs (performance, maintainability, security, cost) When you would…
origin – The main remote repository you cloned or own. upstream – Usually refers to the original repository that your fork came from. Example: If you fork a popular open-source project: Your fork on GitHub = origin The o…
Git is the tool used to track changes in your code locally (on your computer), whereas GitHub is a platform that hosts Git repositories online, enabling collaboration and sharing. GitHub allows teams to work on Git-based…
Answer: 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, m…
Answer: GitHub Actions tokens (GITHUB_TOKEN) should have minimal scopes: permissions: contents: read deployments: write packages: read What interviewers expect A clear definition tied to Version Control in Git & GitH…
Git & GitHub Developer Essentials · Version Control
Answer: ccess them in workflows: env: WS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
Answer: <<<<<<< HEAD your code ======= incoming code >>>>>>> branch
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
My preferred strategy depends on the project type and team size:
fixes.
Development.
frequently (often daily).
Real-world example:
t my last company, we used Trunk-Based Development for a SaaS platform — it reduced
merge conflicts and allowed fast continuous deployment.
Git & GitHub Developer Essentials · Version Control
source code during software development.
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
Answer: Store tokens (like AWS_ACCESS_KEY, DOCKER_TOKEN) in → Settings > Secrets and variables > Actions Access them in workflows: env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
Answer: git config --global user.signingkey <key-id> git config --global commit.gpgsign true
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
Integration means connecting your Git repository to your CI/CD system so every
push, pull request, or tag triggers an automated build, test, and deploy pipeline.
✅ Jenkins Integration
Create a new pipeline job and link it to your Git repository:
pipeline {
gent any
stages {
stage('Checkout') {
steps {
git branch: 'main', url:
}
}
stage('Build') {
steps {
sh 'npm install'
sh 'npm test'
}
}
}
}
✅ GitLab CI/CD
GitLab CI is built-in — simply create .gitlab-ci.yml:
stages:
test:
script:
deploy:
script:
only:
Every push triggers this pipeline automatically.
✅ GitHub Actions
GitHub has its own YAML-based workflows:
name: Node CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
It runs directly in GitHub without needing extra setup.
Real-world example:
Your team pushes code to GitHub → GitHub Actions automatically runs tests →
Jenkins (or GitLab CI) deploys to a staging environment → Approval required for
production deploy.
Git & GitHub Developer Essentials · Version Control
git cherry-pick <commit-hash>
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
git switch -c hotfix/save-work
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
git checkout -b feature/login abc1234
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
Answer: dashboard). → This prevents misuse. Remove the secret from code: git rm --cached path/to/file git commit -m "Remove sensitive file"
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
Answer: Accidentally pushing secrets (API keys, passwords, tokens) is serious — even if you delete them, they may still exist in commit history. Steps to fix it:
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
git merge origin/main
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
After initializing a Git repo locally (git init), you can connect it to a remote repository
(like one on GitHub) using:
git remote add origin
Then push your code:
git push -u origin main
Explanation:
(git push alone works after that).
Real-world example:
You create a local portfolio website and later decide to host it on GitHub. You connect your
local repo to the remote one using git remote add origin so both stay in sync.
Git & GitHub Developer Essentials · Version Control
Answer: Mark the conflicting sections in your file: <<<<<<< HEAD your current branch code ======= incoming branch code >>>>>>> feature/new-ui
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
A Git tag marks specific points in a repository’s history — usually to label release versions
(like v1.0, v2.1, etc.). It’s like a snapshot that says, “this commit is stable and ready to
release.”
Types of tags:
Commands:
git tag -a v1.0 -m "Version 1.0 release"
git push origin v1.0
Real-world example:
fter testing your project, you tag the commit representing your first release with v1.0. This
helps other developers or CI/CD pipelines identify which version is live.
Git & GitHub Developer Essentials · Version Control
Answer: <<<<<<< HEAD current branch code ======= incoming branch code >>>>>>> feature/contact-form
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
A branch in Git is like a separate line of development — a parallel universe for your code. It
llows you to work on new features, bug fixes, or experiments without affecting the main
codebase (usually called the main or master branch).
Why branches are useful:
They make collaboration easier by keeping each developer’s work isolated until it’s ready to
be merged back.
Real-world example:
Imagine your company website is live, but you need to add a “dark mode” feature. Instead
of editing the main code directly (which might break the live site), you create a new branch
called feature/dark-mode to work independently. Once it’s done and tested, you merge it
back into main.
Git & GitHub Developer Essentials · Version Control
Git is a distributed version control system (VCS) that allows multiple developers to work on
project without overwriting each other's work. It's designed to be fast, flexible, and
scalable, allowing developers to track changes in code and collaborate with ease.
In contrast, SVN (Subversion) is a centralized version control system. This means that SVN
has one central repository, and developers check out code to work locally. Git, on the other
hand, allows every developer to have their own full local repository, including the project’s
history. This makes Git faster and more reliable, especially in distributed teams.
Real-World Example:
If you were working on a website project with a team, using Git allows each developer to
clone the repository, make changes locally, and push their changes without disrupting others.
In SVN, the code is pulled from the central server, and only one developer can commit
changes at a time.
Git & GitHub Developer Essentials · Version Control
Answer: A distributed version control system (DVCS) for tracking changes in source code during software development.
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
git checkout wrong-branch git reset --hard HEAD~2
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
Example:
If you fork a popular open-source project:
Commands to set both:
git remote add origin
git remote add upstream
Why it matters:
This setup lets you pull new changes from the main project (upstream) while pushing your
changes to your fork (origin).
Git & GitHub Developer Essentials · Version Control
Git is the tool used to track changes in your code locally (on your computer), whereas
GitHub is a platform that hosts Git repositories online, enabling collaboration and sharing.
GitHub allows teams to work on Git-based projects in a central location, review code, and
manage issues and pull requests.
Real-World Example:
You use Git to make changes to your website’s code locally. Once you're happy with your
changes, you push them to GitHub so your team can see and review the updates. GitHub is
essentially a cloud service that works on top of Git.
Git & GitHub Developer Essentials · Version Control
Answer: including its entire history, allowing for offline work and decentralized collaboration.
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
Git & GitHub Developer Essentials · Version Control
Answer: GitHub Actions tokens (GITHUB_TOKEN) should have minimal scopes: permissions: contents: read deployments: write packages: read
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.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.