- Get count of branches
git branch -a | wc -l
- Get the commits from individual
git shortlog -s -n --all
#OR
git shortlog -s -n
- Get count the commits for the branch we are in
git rev-list --count HEAD
#OR
git log --pretty=oneline | wc -l
#OR
git rev-list --count <BRANCH_NAME>
- List of branches
git branch -a
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
AWS EBS Volmes - Create and attach the EBS volume with mounting
Elasticsearch - Dumping documents from multi-node to single node