Git Cheatsheet - Quick Git Command Reference
Quick reference for common Git commands. Search, copy, and use Git commands instantly.
git merge
Merge branches into current branch
Syntax
git merge [options] <branch>Common Options
| Option | Description |
|---|---|
--no-ff | No fast-forward, preserve branch history |
--ff-only | Only merge if fast-forward |
--squash | Squash merge without commit |
--no-commit | Merge without auto-commit |
--abort | Abort merge |
--continue | Continue merge after resolving conflicts |
-m <msg> | Specify merge commit message |
--strategy=<strategy> | Specify merge strategy |
-v, --verbose | Verbose output |
Examples
git merge feature/loginMerge feature/login into current
git merge --no-ff feature/loginMerge preserving branch history
git merge --abortAbort ongoing merge
git merge --squash feature/loginSquash all changes into one
Related Commands
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...