Git for DBAs
Version control for database work: what Git is and why DBAs need it, how it works, local and remote repositories, GitHub and GitLab, using Git from the command line and VS Code, a two-team automation project, and best practices.
Work through them in order.
Each lesson builds on the one before it.
-
What Is Git
What Git is, the problem it solves, DBA life before it, why DBAs need it, and the essentials to learn.
-
How Git Works
The working directory, staging area, and repository, commits and history, branches and merges, and ignoring files.
-
Local and Remote Repositories
Local and remote repositories, push and pull, how teams collaborate with branches and pull requests, and resolving merge conflicts.
-
Git, GitHub, and GitLab
Git the engine versus the platforms built on it, GitHub, GitLab, Bitbucket, and Azure Repos, hosting options, and other version control systems.
-
Using Git: Command Line and VS Code
Setting up Git, the everyday commands, reading history and undoing changes, and Git in VS Code's Source Control view.
-
Git in Practice
A DBA team and a server team use one repository, CODEOWNERS, pull requests, and a pipeline to automate building database servers end to end.
-
Git Best Practices and Terms
Good commits, branches, and reviews, keeping secrets out, protecting history, practices for database code, and the Git terms to know.