Welcome to the Git for Ops learning series! This repository will guide you step-by-step through the essential concepts and practices of Git, tailored for operations professionals. Whether you're in DevOps, MLOps, or other related fields, you'll find valuable insights and practical examples for using Git in your workflow. Contributions are welcome! Feel free to fork and create pull requests. Let's learn together!
The tutorial is organized into day-wise folders, each containing:
- examples.md: Real-world scenarios for practice
- commands.md: Key Git commands for quick reference
The repository structure is as follows:
Git-for-Ops/
├── day01/
│ ├── examples.md
│ └── commands.md
├── day02/
│ ├── examples.md
│ └── commands.md
├── day03/
│ ├── examples.md
│ └── commands.md
├── day04/
│ ├── examples.md
│ └── commands.md
├── day05/
│ ├── examples.md
│ └── commands.md
├── day06/
│ ├── examples.md
│ └── commands.md
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
└── resources/
- Core Concepts:
- What is version control?
- Importance of version control in software development
- Centralized vs. Distributed Version Control
- Git installation on various systems
- Task: Install Git on your system and configure your first Git repository.
- Key Concepts:
- Local vs. Remote Repositories
- Basic Git architecture
- Connecting with remote repositories (GitHub, GitLab, etc.)
- Task: Create a local repository, initialize it, and push it to a remote server.
- Core Concepts:
- Undoing changes in Git
- Using Git stash to save and restore changes
- Reviewing changes with
git diff
,git log
- Task: Practice undoing local changes and stashing your work.
- Core Concepts:
- Understanding branches and their importance
- Merging branches and resolving conflicts
- Undoing merge changes
- Task: Create a new branch, make changes, merge it back, and resolve merge conflicts.
- Key Concepts:
- Understanding pull requests
- Using issues and discussions in GitHub
- Code reviews and open-source contributions
- Task: Fork a repository, create a pull request, and collaborate on a Git project.
- Core Concepts:
- Git best practices for developers and ops professionals
- Clean Git workflows
- Final review and resources for further learning
- Task: Review your work and practice clean commit histories with detailed messages.
If you'd like to contribute:
- Fork the repository: Create your own copy of this repo.
- Create a feature branch: Run
git checkout -b feature/new-topic
to create a new branch for your changes. - Commit your changes: Use
git commit -am 'Added a new learning day'
to commit your changes. - Push to the branch: Run
git push origin feature/new-topic
to push your changes. - Create a Pull Request: Open a Pull Request to merge your changes into the main branch.
- Always ensure your changes align with the learning content.
- Keep your commit messages clear and concise.
- Follow the code of conduct when interacting with other contributors.
For more details, please refer to the full Contributing Guidelines.
We want this community to be welcoming and respectful to all participants. By participating, you agree to uphold the following standards:
- Be respectful: Treat everyone with respect, kindness, and empathy.
- Be inclusive: Appreciate the diverse perspectives and backgrounds of others.
- Be constructive: If providing feedback, focus on being helpful and objective.
- No harassment: Harassment, bullying, or offensive behavior will not be tolerated.
For more details, please refer to the full Code of Conduct.