Git¶
Git is a free and open source distributed version control system.
Package Information¶
| Property | Value |
|---|---|
| Package Name | git |
| Upstream | git-scm.com |
| License | GPL-2.0 |
Installation¶
- Install Git from Package Center
- Git is added to system PATH
Configuration¶
Basic Setup¶
SSH Keys¶
Generate SSH key for Git hosting:
Usage¶
Clone Repository¶
Basic Workflow¶
# Check status
git status
# Stage changes
git add .
# Commit
git commit -m "Commit message"
# Push
git push
Branches¶
# Create branch
git checkout -b feature-branch
# Switch branches
git checkout main
# Merge
git merge feature-branch
Related Packages¶
- Gitea - Self-hosted Git service (package not currently available)
- SynoCli Development Tools - Build tools