Welcome to the Git Tutorial Repository! This repo is powered by DeepSeek ai and designed to help you learn Git, a distributed version control system that allows developers to track changes in their code, collaborate seamlessly, and manage projects efficiently. Whether you're new to Git or brushing up your skills, this tutorial will guide you through essential concepts and workflows.
Git is a free, open-source version control system created by Linus Torvalds. It helps you:
- Track changes in your code over time.
- Collaborate with others without overwriting work.
- Revert to previous versions of your project.
- Manage multiple branches of development.
This repository includes hands-on examples and a cheatsheet to help you master Git commands and workflows.
To get started, clone this repo to your local machine:
git clone https://github.com/arwinux/git-tutorial
cd git-tutorial
If you don’t have Git installed, download it from git-scm.com.
This repo uses branches to isolate different Git concepts. Each branch focuses on a specific topic (e.g., basics
, branching
, collaboration
, advanced
). Follow these steps to explore:
git branch -a
For example, to learn about branching workflows, use:
git checkout branching
For example, to learn about branching workflows, use:
-
Study the example files and comments.
-
Practice commands listed in the cheatsheet.md.
-
Return to the main branch when done:
git checkout main
Branch Name | Topic Covered |
---|---|
basics |
Initializing repos, staging, committing |
branching |
Creating, merging, and rebasing branches |
collaboration |
Remote repos, fetching, pushing, and pulling |
advanced |
Stashing, resetting, tags, and cherry-picking |
This repo uses branches to isolate different Git concepts. Each branch focuses on a specific topic (e.g., basics
, branching
, collaboration
, advanced
). Follow these steps to explore:
git checkout -b my-experiment
git add .
git commit -m "Add experiment feature"
git checkout main
git merge my-experiment
A handy reference for Git commands is included in cheatsheet.md Use it to review commands for:
-
Basic workflows
-
Branch management
-
Team collaboration
-
Advanced techniques
Feel free to contribute to this tutorial! Fork the repo, create a branch for your changes, and submit a pull request.
- Introduction to Git: Explains why Git is important.
- Branch Navigation: Guides users on how to switch between tutorial branches.
- Structured Workflow: Provides a clear practice workflow for experimentation.
- Cheatsheet Integration: Links to your existing
cheatsheet.md
.
Let me know if you’d like to tweak any sections! 😊