Your DevOps study space

Real explanations. Videos with tests. Fresh exams every time. Keep the streak alive and watch the XP stack up.

Undoing & inspecting · Git Docs · StackwisePlanDevOps Undoing & inspecting · Git Docs · StackwiseCodePython Undoing & inspecting · Git Docs · StackwiseBuildDocker Undoing & inspecting · Git Docs · StackwiseTestDevOps Undoing & inspecting · Git Docs · StackwiseReleaseGit Undoing & inspecting · Git Docs · StackwiseDeployKubernetes Undoing & inspecting · Git Docs · StackwiseOperateLinux Undoing & inspecting · Git Docs · StackwiseMonitorDevOps

Pick a topic

Eight tracks, each with docs, a cheat sheet, videos and tests.

How it works

One loop, repeated until it sticks.

Jump back in

Picked up from where you left off.

Free forever

Your DevOps journey starts with one click.

Sign in with Google or GitHub to open every chapter, video, test and challenge. Your progress is saved wherever you learn.

Undoing & inspecting

Almost nothing in Git is truly lost once committed, and there's a safe way back from most mistakes. The skill is picking the right undo for where the change is: not yet staged, staged, committed locally, or already pushed.

Pick the undo by where the change is

SituationCommand
Throw away edits to a file (not staged)git restore file
Unstage a file, keep the editsgit restore --staged file
Fix the message of the last commit, or add a forgotten filegit commit --amend
Undo the last local commit, keep the changesgit reset --soft HEAD~1
Undo a commit that's already pushedgit revert <hash>
Park unfinished work for a momentgit stash

reset versus revert

git reset moves your branch pointer backwards, so the commits after it drop out of the branch's history. It has three strengths:

  • --soft: undo the commit, keep the changes staged.
  • --mixed (the default): undo the commit and unstage, but keep the changes in your files.
  • --hard: undo the commit and throw the changes away. The dangerous one.

git revert does the opposite kind of undo: it creates a new commit that reverses an old one. History only grows, nothing is rewritten, so it's the safe choice on shared branches like main. Rule of thumb: reset for local commits nobody else has, revert for anything already pushed.

Resetting commits that were already pushed rewrites shared history. Pushing it needs --force and breaks everyone else's copy. On shared branches, use revert.
git reset --hard HEAD~1 rewrites historyABCmainC drops out of the branchgit revert C adds a new commit, safe after a pushABCC'mainC' undoes C's changes
reset moves the pointer back and rewrites history, fine for local commits. revert only adds, which is why it's the safe undo for anything already pushed.

Stash: a shelf for unfinished work

You're halfway through something and need to switch branches to fix a bug. git stash saves your uncommitted changes and gives you a clean working folder; git stash pop brings them back later. git stash list shows everything on the shelf.

Inspecting

  • git diff: unstaged changes. git diff --staged: what's about to be committed. git diff main..feature: what a branch changes.
  • git show <hash>: one commit's message and full diff.
  • git blame file: who last changed each line, and in which commit.
  • git reflog: every place HEAD has pointed recently, even commits no branch points to any more. It's the safety net for "I reset too far".

Questions

Pick an answer. Get it wrong and you can try again right away, no waiting. 10 questions per topic - pick a filter below, then use Recreate questions for a fresh set on that topic.

Fresh questions every time

Exam

A mixed test across the whole site, shuffled so you never know which topic comes next. When you submit, every mistake comes with the reason and a jump to the exact moment in the video that explains it.

30 questions 6 topics 20 minute limit Up to 70 XP
1–4 answer · ←→ move
History

Essay

0 / 200-250 words
Sample answer
History
0:00 / 0:00
Not started

on YouTube
Subscribe

Topic progress

Activity

Achievements

Settings

Your profile and your account.

Profile details

* Required. Saved in this browser until you sign in.

Letters, numbers, dots, dashes and underscores.
0 / 160

Account

Checking…

App

Install Stackwise on your phone or computer. It opens in its own window from your home screen, and the Docs and cheat sheets you've opened keep working without internet.

Only admins can see this

Dashboard

Sign-ups, activity, messages and reviews in one place.

Prove it

Certificates

Pass a topic's test and get a certificate with its own public page you can share or add to LinkedIn. Each test is 10 questions drawn at random and graded on the server; you need 8 right, you have 15 minutes, and you get one try per topic a day.

From first command to production

Linux for DevOps

A path through Linux the way DevOps engineers use it: ten stages, every command explained with its flags, examples, real output and mistakes, the combinations engineers chain together, and incidents worked through step by step. Practise everything in a safe lab folder.

Before the interview

Interview prep

Questions that come up in real DevOps interviews, with the kind of answer that lands. Say yours out loud first, then compare. Each one links to the chapter that goes deeper.

    Private to you

    My notes

    Everything you wrote down while watching and reading, in one place. Saved to your account, never shown to anyone.