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

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.

safe beginner

Save my changes: commit and push

You edited some files and want them saved in Git and on GitHub (which triggers a Vercel deploy).

safe beginner

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.

safe beginner

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.

careful beginner

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.

careful intermediate

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.

safe intermediate

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.

careful beginner

Resolve a merge conflict

A merge or pull stopped with CONFLICT because the same lines were changed in two places.

careful intermediate

Push rejected (non-fast-forward / fetch first)

git push fails with rejected because GitHub has commits you do not have.

careful beginner

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.

safe beginner

Roll back a bad deployment

You deployed and the live site is broken. Restore a previous version fast.

careful intermediate

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.

safe beginner

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.

safe intermediate

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.

careful intermediate

Send FortiGate logs to a syslog server

You have a FortiGate firewall and want its logs delivered to your syslog server.

careful intermediate

No logs arriving: step-by-step checklist

The device says syslog is configured, but nothing appears on the server.

safe intermediate