Developer Cheat Sheets

Riferimento sviluppatori

Stop Googling. Inizia shipping.

15+ cheat sheets for Git, VS Code, Vim, Regex, CSS, JavaScript, Python, SQL, Docker, and more. Searchable. Copy-friendly.

Git Commands

Setup & Init

git init

Initialize a new repository

e.g. git init my-project

git clone <url>

Clone a remote repository

e.g. git clone https://github.com/user/repo.git

git config --global user.name

Set global username

e.g. git config --global user.name "John"

Basic Workflow

git status

Show working tree status

git add <file>

Stage changes

e.g. git add . (stage all)

git commit -m

Commit staged changes

e.g. git commit -m "feat: add login"

git push

Push to remote

e.g. git push origin main

git pull

Fetch + merge from remote

git fetch

Download remote changes without merging

Branching

git branch

List branches

git branch <name>

Create a new branch

git checkout <branch>

Switch branches

git checkout -b <name>

Create & switch to new branch

git merge <branch>

Merge branch into current

git rebase <branch>

Rebase current onto branch

git branch -d <name>

Delete a branch

Undoing Things

git reset HEAD <file>

Unstage a file

git checkout -- <file>

Discard file changes

git revert <commit>

Create a new commit that undoes changes

git stash

Temporarily store modified files

git stash pop

Restore stashed changes

History & Diff

git log --oneline

Compact commit history

git diff

Show unstaged changes

git diff --staged

Show staged changes

git blame <file>

Show who changed each line

Developer Cheat Sheets — Quick Reference for Git, CSS, JS & More | Aethyrix