Getting Started¶
This guide explains how to set up the GitHub Deep Dive Training repository and begin working through its lessons.
1. Prerequisites¶
Before starting, install the following tools:
| Tool | Purpose |
|---|---|
| Git | Version control |
| GitHub Account | Repository hosting and collaboration |
| GitHub CLI | Interacting with GitHub from the terminal |
| VS Code | Code editor |
| Python | Required for documentation development |
| PowerShell | Windows terminal |
Some lessons require additional tools. Their installation instructions will be provided within the relevant lessons.
2. Clone the Repository¶
Open PowerShell and execute:
3. Understand the Directory Structure¶
The repository is organized into the following main directories:
docs/¶
Contains the training documentation and technical guides.
index.md: Documentation homepage.getting-started.md: Onboarding guide.git-and-github-guides/: Supplementary Git and GitHub guides.github-training-modules/: Structured course lessons.
examples/¶
Contains practical code examples and demonstration workflows.
exercises/¶
Contains hands-on exercises that help reinforce the lessons.
.github/¶
Contains GitHub-specific configuration:
- Issue templates.
- Pull request templates.
- CODEOWNERS.
- Dependabot configuration.
- GitHub Actions workflows.
4. Follow the Learning Path¶
We recommend following the lessons in numerical order.
For every lesson:
- Read the explanation.
- Understand the GitHub concepts.
- Follow the examples.
- Execute the commands in your own practice repository.
- Complete the associated exercises.
- Review your results.
Do not execute unfamiliar Git commands on important repositories without understanding their effects.
5. Practice with Git¶
Create a dedicated local practice directory:
Configure your Git identity:
Verify your configuration:
Use this practice repository to experiment with:
- Branches.
- Commits.
- Merges.
- Rebases.
- Tags.
- Conflicts.
- Recovery operations.
6. Explore the Examples¶
The examples directory contains practical demonstrations.
For example:
examples/
├── git-hooks-workflow/
├── issues-and-projects-workflow/
├── pull-request-workflow/
├── releases-workflow/
├── submodules-workflow/
└── worktrees-workflow/
Explore the README and Markdown instructions inside each example directory before executing its code.
7. Run the Documentation Website Locally¶
If you want to contribute to the documentation website, install Python and create a virtual environment.
Start the local documentation server:
Open:
Build the documentation:
8. Contribute Changes¶
If you want to contribute to the repository:
- Update your local
mainbranch. - Create a feature branch.
- Make your changes.
- Run relevant checks.
- Commit your changes.
- Push your branch.
- Open a pull request.
Example:
9. Track Your Progress¶
Maintain your learning progress by recording:
- Completed lessons.
- Completed exercises.
- Git commands practiced.
- Concepts that need revision.
- Problems encountered.
- Projects completed.
The goal is not simply to read the lessons.
The goal is to apply Git and GitHub concepts in practical development workflows.
10. Troubleshooting¶
Git is not recognized¶
Verify that Git is installed and available in your PATH.
MkDocs is not recognized¶
Activate your Python virtual environment and install the dependencies again.
Documentation build fails¶
Execute:
Read the reported errors and check:
- Missing Markdown files.
- Invalid navigation paths.
- Broken internal links.
- Invalid MkDocs configuration.
GitHub Pages is not updating¶
Check:
- Repository Settings > Pages.
- GitHub Actions workflow status.
- Deployment permissions.
- The latest successful deployment.
Next Step¶
Continue with: