๐ง 181. What is Git?
Git is a distributed version control system used to track code changes.
Benefits:
โ Track code history
โ Collaborate with teams
โ Manage versions
Example:
git init
๐ง 182. Difference Between Git and GitHub
Concept | Git | GitHub
Version control system | Cloud hosting platform
Works locally | Works online
Tracks code changes | Stores repositories
Example:
Git : Local machine
GitHub : Remote repository hosting
๐ง 183. What is Version Control?
Version control is a system that records changes to files over time.
Benefits:
โ Roll back changes
โ Team collaboration
โ Change tracking
Example:
git log
๐ง 184. What is Branching in Git?
A branch is an independent line of development.
Common Branches:
main
develop
feature branches
Example:
git branch feature-login
Benefits:
โ Safe development
โ Parallel work
๐ง 185. What is a Merge Conflict?
A merge conflict occurs when Git cannot automatically merge changes.
Example:
Two developers modify the same line of code.
Resolution Steps:
1. Identify conflict
2. Edit conflicting code
3. Commit changes
git add .
git commit
๐ง 186. What is CI/CD?
CI/CD stands for:
๐ Continuous Integration (CI)
๐ Continuous Deployment/Delivery (CD)
Continuous Integration:
Automatically tests code after every commit.
Continuous Deployment:
Automatically deploys code after successful testing.
Benefits:
โ Faster releases
โ Reduced bugs
โ Automation
๐ง 187. What is Docker?
Docker is a platform used to package applications into containers.
Benefits:
โ Consistent environments
โ Easy deployment
โ Lightweight containers
Example:
docker build .
Container Example:
Application
Dependencies
Libraries
Configuration
All packaged together.
๐ง 188. What is Kubernetes?
Kubernetes is a container orchestration platform.
It manages:
Containers
Scaling
Load balancing
Deployments
Benefits:
โ Auto-scaling
โ High availability
โ Container management
Example:
kubectl get pods