Git & Github interview questions
Master Git & Github interview questions with 22+ curated problems, answer outlines, and placement-focused preparation.
- 22+ topic questions
- Covers interview-ready concepts and answers
- Free practice for placement preparation
Preview Questions
-
What is Git and its importance?
Git is a distributed version control system created by Linus Torvalds in 2005 that tracks changes in source code during software development. Unlike centralized version control systems where a single server stores the...
-
What is a Git repository?
A Git repository is a file structure that stores all project files and the complete history of changes made to those files. A repository contains the working directory where developers edit files, a staging area where...
-
What is the difference between local and remote repositories?
A local repository exists on a developer's machine and contains the complete project history including all commits, branches, and configuration information. Developers work directly with their local repositories, making...
-
What is a fork and when should you use it?
Forking is creating a personal copy of someone else's repository under your GitHub account, enabling you to freely experiment with the code without affecting the original repository. Forks are particularly important for...
-
What is the .gitignore file?
The .gitignore file is a configuration file in the repository root that specifies files and directories that Git should ignore and not track. Files matching patterns in .gitignore are never added to version control and...
-
What is git tag?
A git tag marks a specific commit as important, typically for identifying release versions or significant milestones. Tags provide human-readable names for specific commits, making them easy to reference without...
-
What is git diff?
The git diff command displays changes between different states like working directory vs staging area, staging area vs last commit, or between two commits. git diff shows unstaged changes between working directory and...
-
What is GitHub Actions and CI/CD?
GitHub Actions is GitHub's continuous integration and continuous deployment automation platform enabling automated testing, building, and deployment of code. Actions run automated workflows triggered by repository...