Filters
Zo zoek je
  • Gewone woorden vinden namen, teksten en voorbeelden.
  • "twee woorden" vindt precies die zin.
  • --naam of -x vindt een optie.
  • #woord zoekt alleen in commando's.
  • @grep vindt lessen en labs die grep gebruiken.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Zet ! voor een woord om het weg te laten. OR tussen woorden betekent één ervan.
  • ↑ ↓ bewegen · Enter openen · Esc sluiten · / zoeken

Git en GitHub voor beheerders

Versiebeheer voor code, config en infrastructuur: commits, branches, remotes, pull requests, ongedaan maken en secrets buiten Git houden.

Cursus van
Git project
Cursuscode
Git
Versie
Git 2.4x
Lessen
40

Deze samenvattingen volgen de openbare inhoud van de cursus. Ik schreef elke les in mijn eigen woorden en testte de commando's op RHEL 10. Het is geen lesmateriaal van Red Hat. Volg de officiële cursus voor de volledige inhoud en de praktijklabs.

Volgende cursus: GitHub Actions

Delen en hoofdstukken

Deel 1

Alleen werken

  1. 1Track changes with your first repositoryGit basics5 lessen
    Lessen
    1. 1.1 Set up Git once
    2. 1.2 Know the three areas
    3. 1.3 Make good commits
    4. 1.4 Look at the history
    5. 1.5 Ignore files
  2. 2Undo changes safelyUndoing things5 lessen
    Lessen
    1. 2.1 Undo changes in files
    2. 2.2 Fix the last commit
    3. 2.3 Move a branch back with reset
    4. 2.4 Undo a pushed commit with revert
    5. 2.5 Find "lost" commits with reflog
  3. 3Work in branches and merge themGit branching4 lessen
    Lessen
    1. 3.1 Create and switch branches
    2. 3.2 Merge a branch
    3. 3.3 Solve merge conflicts
    4. 3.4 Keep main safe

Deel 2

In een team werken

  1. 4Share work with remote repositoriesWorking with remotes5 lessen
    Lessen
    1. 4.1 Clone a repository
    2. 4.2 Manage remotes
    3. 4.3 Fetch and pull
    4. 4.4 Push your branch
    5. 4.5 Understand tracking branches
  2. 5Keep a clean history with rebaseRebasing5 lessen
    Lessen
    1. 5.1 Rebase a branch on main
    2. 5.2 Solve conflicts during a rebase
    3. 5.3 Clean up commits interactively
    4. 5.4 Choose merge or rebase
    5. 5.5 Pick single commits
  3. 6Work with GitHub pull requestsGitHub collaboration5 lessen
    Lessen
    1. 6.1 Follow the GitHub flow
    2. 6.2 Write a good pull request
    3. 6.3 Review changes
    4. 6.4 Protect the main branch
    5. 6.5 Use issues and releases

Deel 3

Tools en beveiliging

  1. 7Use stash, tags, bisect, blame and worktreesGit tools6 lessen
    Lessen
    1. 7.1 Put work aside with stash
    2. 7.2 Mark versions with tags
    3. 7.3 Find the bad commit with bisect
    4. 7.4 See who changed a line
    5. 7.5 Work on two branches at once
    6. 7.6 Search and clean the repository
  2. 8Secure your Git workGit security for DevSecOps5 lessen
    Lessen
    1. 8.1 Keep secrets out of Git
    2. 8.2 Scan for secrets
    3. 8.3 Stop mistakes with pre-commit hooks
    4. 8.4 Sign your commits
    5. 8.5 React to a leaked secret