Guides
Guides
By Lalla Asmaa Alaoui, founder of Mel · Updated
Step-by-step answers to common questions about git, the terminal, AI coding agents and file work. Each guide gives the answer first, then the commands by hand for Mac, Linux and Windows, then the same job done in Mel.
Git
git reset --soft HEAD~1 keeps your changes; use git revert HEAD if you already pushed.How to see what changed before you commitgit diff for unstaged changes, git diff --staged for what will be committed.How to fix a merge conflict in gitkeep the right lines between the conflict markers, then git add and git commit.How to create and switch branches in gitgit switch -c my-branch creates a branch and moves you onto it.How to discard local changes to a file in gitgit restore <file> puts a file back to its last committed state.Terminal and shell basics
find . -size +100M lists big files, and du -sh * | sort -h ranks folders.How to find which process is using a portlsof -i :3000 on Mac and Linux, netstat -ano | findstr :3000 on Windows.How to set an environment variable on Mac, Linux and Windowsexport, setx and $env:, for one command, one session or for good.How to search for text in files from the terminalgrep -rn "text" ., plus ripgrep, git grep, findstr and Select-String.How to make a shell alias that lastsadd the alias to ~/.zshrc or ~/.bashrc, with options for fish and Windows.Working with AI coding agents
Files, PDFs and research
Learn the ideas
Want the concepts behind these guides? See Learn for agentic terminals, coding agents, approvals and more.
Mel – the agentic terminal · openmel.dev. A multi-agent, multi-model AI terminal for Mac, Windows, Linux and VS Code. Free with your own API key.

Lalla is a hands-on tech founder, agentic infrastructure architect and the vision behind Mel.
Follow on LinkedIn