A comprehensive, hands-on guide to Git and GitHub commands, from basics to advanced concepts. This repository serves as a one-stop solution for learning Git and GitHub through practical examples and ready-to-use scripts.
.
├── 01-basics/
│ ├── scripts/
│ └── README.md
├── 02-intermediate/
│ ├── scripts/
│ └── README.md
├── 03-advanced/
│ ├── scripts/
│ └── README.md
├── scripts/
│ ├── windows/
│ └── linux/
└── examples/
-
Basics
- Repository initialization
- Adding and committing changes
- Pushing and pulling
- Branch management basics
-
Intermediate
- Branching strategies
- Merge conflict resolution
- Stashing changes
- Remote repository management
- Git hooks basics
-
Advanced
- Rebasing
- Cherry-picking
- Git workflows
- Advanced Git hooks
- Repository maintenance
- Git internals
- Clone this repository:
git clone https://github.com/yourusername/git-commands-master.git
cd git-commands-master-
Navigate to your skill level:
-
Use the one-click scripts in the
scriptsdirectory for your operating system.
01-basics/: Fundamental Git commands and concepts02-intermediate/: More complex Git operations and workflows03-advanced/: Advanced Git concepts and best practicesscripts/: Ready-to-use scripts for Windows and Linuxexamples/: Real-world examples and scenarios
- Located in
scripts/windows/ - Double-click to execute
- PowerShell scripts for automation
- Located in
scripts/linux/ - Execute with
./script-name.sh - Bash scripts for automation
- Start with the basics section if you're new to Git
- Each section contains:
- Detailed README with concepts
- Step-by-step tutorials
- Practice exercises
- Ready-to-use scripts
- Common problems and solutions
Feel free to contribute to this repository by:
- Forking the repository
- Creating your feature branch
- Committing your changes
- Pushing to your branch
- Creating a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.