Your DevOps study space

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

Branching & merging · Git Docs · StackwisePlanDevOps Branching & merging · Git Docs · StackwiseCodePython Branching & merging · Git Docs · StackwiseBuildDocker Branching & merging · Git Docs · StackwiseTestDevOps Branching & merging · Git Docs · StackwiseReleaseGit Branching & merging · Git Docs · StackwiseDeployKubernetes Branching & merging · Git Docs · StackwiseOperateLinux Branching & merging · 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.

Branching & merging

Branches let you work on a feature or a fix without touching the working version, then bring the work back in when it's ready. They're cheap in Git, so teams create one for almost every change.

What a branch really is

A branch is just a movable label pointing at a commit. When you commit on a branch, the label moves forward to the new commit. HEAD is Git's pointer to "where you are now", normally the branch you have checked out. main is simply the branch everyone agrees holds the official version.

$ git branch                    # list branches (* marks the current one)
$ git switch -c feature/login   # create a branch and move onto it
$ git switch main               # go back to main
$ git branch -d feature/login   # delete a branch that's been merged
# older equivalent of switch: git checkout -b feature/login / git checkout main

Merging

To bring a branch's work into main, switch to main and merge:

$ git switch main
$ git merge feature/login

There are two outcomes. If main hasn't moved since you branched, Git does a fast-forward: it just slides the main label up to your latest commit. If both branches have new commits, Git creates a merge commit that has two parents and combines both lines of work.

Merge conflicts

If both branches changed the same lines of the same file, Git can't know which version is right, so it stops and asks you. The file will contain both versions between markers:

<<<<<<< HEAD
<h1>DevOps practice</h1>
=======
<h1>DevOps</h1>
>>>>>>> feature/rename
  1. Open the file and decide what the final version should be. Keep one side, the other, or a mix.
  2. Delete the <<<<<<<, ======= and >>>>>>> lines.
  3. git add the file to mark it resolved, then git commit to finish the merge.

Conflicts aren't errors; they're Git being careful. Pulling often and keeping branches short-lived keeps them small.

Rebase

git rebase main (run on your feature branch) takes your commits and replays them on top of the latest main, as if you'd started from there. The history stays in a straight line with no merge commits. Because it rewrites your commits into new ones, the rule is: only rebase commits that you haven't shared yet. Rebasing a branch other people have pulled causes a mess for them.

Detached HEAD

git switch --detach 3955422 (or git checkout 3955422) lets you look at an old commit. You're then in "detached HEAD" state: you aren't on any branch, so new commits made there aren't saved to one and can get lost. To keep them, create a branch right there with git switch -c rescue.

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.