Git Cheatsheet - Quick Git Command Reference
Quick reference for common Git commands. Search, copy, and use Git commands instantly.
git blame
Show last modification info for each line
Syntax
git blame [options] <file>Common Options
| Option | Description |
|---|---|
-L <start>,<end> | Show only specified line range |
-L <start>,+<n> | Show n lines from start |
--show-name | Show original filename |
--date=<format> | Specify date format |
-C | Detect copies and moves |
-M | Detect line moves |
-e | Show author email |
-w | Ignore whitespace changes |
Examples
git blame file.txtShow line-by-line blame info
git blame -L 10,50 file.txtShow lines 10 to 50
git blame -L "/^function/",+20 file.jsShow 20 lines from function start
git blame -C -L 1,100 file.txtTrack code copy origin
Related Tools
More Code & Dev Tools
Color Converter
Free online color converter. Convert between HEX, RGB, HSL, ...
cURL Command Builder
Build cURL commands visually. Set URL, method, headers, body...
Systemd Service Generator
Generate systemd service unit files visually. Configure Exec...
Color Palette Generator
Generate harmonious color palettes online. Create color sche...
SQL Formatter
Format and beautify SQL queries online. Improve SQL readabil...
Color Contrast Checker
Check color contrast ratios for WCAG compliance. Ensure acce...
Port Checker
Check if a port is open online. Test port availability and c...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
IP Calculator
Calculate IP ranges, subnet masks, and CIDR notation. Networ...
Docker Compose Generator
Generate Docker Compose YAML files visually. Add services, c...
WebSocket Tester
Test WebSocket connections and messages in real-time. Connec...
DNS Lookup
Query DNS records online. Look up A, AAAA, CNAME, MX, TXT, N...