Developer Notes & Cheatsheet

Published 2026-01-05 00:00 84 words 1 min read

A quick collection of useful terminal commands, Git tricks, and TypeScript utility patterns.

A quick reference collection of developer workflows and commands.

Git Essentials

# Clean untracked files
git clean -fd

# Undo last commit keeping changes
git reset --soft HEAD~1

# View pretty log graph
git log --oneline --graph --decorate --all

Useful TypeScript Types

// Deep Partial helper
type DeepPartial<T> = {
  [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
};

// Strongly typed Object.entries
type Entries<T> = {
  [K in keyof T]: [K, T[K]];
}[keyof T][];

If you enjoyed this, leave a comment~

© 2026 Ayush Shukla @Ayush Shukla
Powered by theme astro-koharu · Inspired by Shoka