Commit History
Show all commits, starting with the newest
git log
Commit history of specific file
git log -p <file_name>
# EXAMPLE
git log -p README.md
Commit hitory by user
git blame <file_name>
#Example
git blame README.md
Branches
List all local brnahces
git branch
List all local and remote brnahces
git branch -av
Switch to existing branch
git checkout <branch_name>
# Example
git checkout jinnabalu/testBranchName
Create a new branch
git checkout -b <brach_name>
# Example
git checkout -b jinnabalu/myNewBranchName
Delete local branch
git branch -d <branch_name>
# Example
git branch -d jinnabalu/myNewBranchName
## Force delete if not merged
git branch -D jinnabalu/myNewBranchName
Delete remote/origin branch
git push origin --delete <branch_name>
# Example
git push origin --delete jinnabalu/myNewBranchName
Pull and Push
Get latest from remote
pull: gets latest pushed by someone to the branch
git pull
Push local changes
push: push local cahnges to the remote branch
git push -u origin <branch_name>
# Example
git push -u origin jinnabalu/myNewBranchName
Related Post:
Why Python for Production Services
Vector Aggregator — Transform and Route
Vector Agent — Lightweight Log Collection
HashiCorp Vault — Centralized Secret Management
Vault Auth Methods — Token vs AppRole
Test Coverage and CI Integration
Why Structured Logging Matters
structlog — JSON Logging with Context
Secret Workflow — Local to Production
pytest — Fixtures, Conftest, and Async Testing
Pydantic — Request & Response Validation
Prometheus Metrics — RED Method
Project Structure with pyproject.toml
Auto-Instrumentation for FastAPI
OpenTelemetry — Traces, Spans, and Context
Log Rotation and Disk Management
Jaeger — Visualizing Distributed Traces
Integration Tests for API Endpoints
Health Checks and Readiness Probes
FastAPI — Async-First HTTP Framework
Error Handling & Response Models
Elasticsearch + Kibana — Search and Visualize
Dual Output — Stdout and File Logging
Docker — Containerize from Day One
Dependency Updates and Maintenance
Dependency Auditing with pip-audit
Request-Scoped Logging with Correlation IDs
Environment-Based Config with pydantic-settings
RESTful Route Design with FastAPI Router
K8s Contributor Playground, Learning by Contributing
Adding Try in PWD button to README file
Open JDK docker container commands shell access to the container
AWS EBS Volmes - Create and attach the EBS volume with mounting
Elasticsearch - Dumping documents from multi-node to single node