Git is an open-source distributed version control system that keeps code in a known, reliable location, preserves history, and supports parallel development. Relying only on a development server and its backups can leave code unrecoverable, as MagicChoc discovered. section 7.6.1
A practical Git setup for a SQL Server Database project includes:
- Create a repository from Visual Studio’s Git Changes window, choosing its local path, license template, and gitignore template. section 7.6.1
- Connect the repository to GitHub, specifying the account, repository name, owner, and optional description. section 7.6.1
- Create a code branch, review changes there, and merge acceptable work into the main or master branch. section 7.6.1
- Expect occasional conflicts because files remain unlocked, then use version history to roll back introduced bugs. section 7.6.1
Figure 7.7 Creating and configuring a repo in GitHub
Repository creation in GitHub, including initialization settings and account configuration. section 7.6.1







