Git important commands

Hi there! I'm Dinesh, a passionate Cloud and DevOps enthusiast. I love to dive into the latest new technologies and sharing my journey through blog.
Search for a command to run...

Hi there! I'm Dinesh, a passionate Cloud and DevOps enthusiast. I love to dive into the latest new technologies and sharing my journey through blog.
No comments yet. Be the first to comment.
1. Difference between Docker and Kubernetes Docker → Builds and runs containers.Kubernetes → Orchestrates containers across multiple nodes. Key points: Docker = container runtime. Kubernetes = container orchestration tool. Kubernetes provides auto...
In this session, we learn how to monitor a Kubernetes cluster using Prometheus and Grafana.This is not just theory — there is a GitHub repository containing all installation commands and demo steps.The repo will also be enhanced later with advanced K...
1. What is a ConfigMap in Kubernetes? A ConfigMap is used to store non-sensitive configuration data that your application needs — such as: Database port Connection type Any general configuration values In normal applications (non-Kubernetes), de...
Kubernetes normally supports built-in resources like: Deployment Service Pod ConfigMap Secret Ingress These are called native resources. Sometimes companies (Istio, ArgoCD, Prometheus Operator, Kyverno, etc.) want to add new features that Kub...
1. Why Kubernetes Services Are Needed When a Pod is created in Kubernetes, it receives a dynamic IP address.If the Pod dies and restarts, its IP changes.So other Pods (like checkout → payments) cannot rely on Pod IP because it changes, creating issue...
Git Commands :
Set global user name
git config -global user.name "user name"
Set global user email
git config --global user.email "email"
Initialize repository
git init
Clone repository
git clone <repo_url>
View repository status
git status
Stage changes
git add
Stage all changes
git add .
Create branch
git branch <branch_name>
Commit changes
git commit -m "message"
List branch
git branch -a
Switch to branch
git checkout <branch name>
Merge branch
git merge <branch name>
Pull changes
git pull origin <branch name>
Push changes
git push origin <branch name>
View commit history
git log
Revert commit
git revert
Reset to commit
git reset
List tags
git tag
Show changes not yet staged
git diff
Add remote repository
git remote add origin <repo_url>
Show remote details
git remote show origin
Delete untracked files
git clean -f
Interactive rebase
git rebase i