Git & GitHub Interview Questions & Answers

✅ *Git & GitHub Interview Questions & Answers* 🧑💻🌐 1️⃣ What is Git? A: Git is a distributed version control system to track changes in source code during development. 2️⃣ What is GitHub? A: GitHub is a cloud-based platform that hosts Git repositories and supports collaboration, issue tracking, and CI/CD. 3️⃣ Git vs GitHub Git: Version control tool (local) GitHub: Hosting service for Git repositories (cloud-based) 4️⃣ What is a Repository (Repo)? A: A storage space where your project’s files and history are saved. 5️⃣ Common Git Commands: git init → Initialize a repo git clone → Copy a repo git add → Stage changes git commit → Save changes git push → Upload to remote git pull → Fetch and merge from remote git status → Check current state git log → View commit history 6️⃣ What is a Commit? A: A snapshot of your changes. Each commit has a unique ID (hash) and message. 7️⃣ What is a Branch? A: A separate line of development. The default branch is usually main or master. 8️⃣ What is Merging? A: Combining chan https://lnkd.in/gbaTnZbu

To view or add a comment, sign in

Explore content categories