Pick your situation. Get the exact commands.
A personal playbook for Git, GitHub and Vercel: every scenario has the steps, the reason for each command, how to check it worked, and how to undo it.
Topics
Git & GitHub
Commit, push, pull, merge, undo mistakes, read history.
25 scenariosVercel & Deploy
Deploy from GitHub, previews, env variables, domains, rollbacks.
6 scenariosLogging & Syslog
What a syslog server is, which one to pick, how to install it, how to feed it FortiGate and ESXi logs.
25 scenariosLearn (Q&A)
Flashcards built from every scenario. Track what you already know.
Favorites
Recently viewed
Most-needed situations
Create a repo and push a new project to GitHub
You have a local folder (like this one) that is not in Git yet, and you want it on GitHub, ready to connect to Vercel.
Save my changes: commit and push
You edited some files and want them saved in Git and on GitHub (which triggers a Vercel deploy).
What did I do? Read status, log and diff
You came back to the project after a while and need to know where things stand and what you changed.
I changed things and GitHub changed too: pull, merge, push
You worked directly on main locally, GitHub also has new commits (another PC, a merged PR), and you need to combine them and push.
Update my feature branch with the latest main
You are working on a branch and main has moved on. Bring main's changes into your branch before you finish.
Branch, pull request, preview, merge (safest flow for a live site)
You want to change the live site without risking it: test on a Vercel preview and merge only when happy.
Undo my last commit (not pushed yet)
You committed too early, with the wrong message, or included a file you should not have, and you have not pushed.
Resolve a merge conflict
A merge or pull stopped with CONFLICT because the same lines were changed in two places.
Push rejected (non-fast-forward / fetch first)
git push fails with rejected because GitHub has commits you do not have.
Deploy a GitHub repo to Vercel for the first time
Your code is on GitHub and you want it live on a *.vercel.app URL that redeploys on every push.
Roll back a bad deployment
You deployed and the live site is broken. Restore a previous version fast.
What is syslog and what is a syslog server?
Someone asks what a syslog server is, why they would need one, and what it does.
Which syslog solution should I pick? (by scenario)
You need to recommend a setup and justify it by size, budget and what the customer wants to do with the logs.
Install a syslog server on Ubuntu (rsyslog)
You want a free, reliable syslog server on Ubuntu that stores each device's logs in its own daily file.
Send FortiGate logs to a syslog server
You have a FortiGate firewall and want its logs delivered to your syslog server.
No logs arriving: step-by-step checklist
The device says syslog is configured, but nothing appears on the server.