GitHub ist der Ort, an dem sich der Code der Welt befindet – über 500 Millionen Repositories, die von 100 Millionen Entwicklern verwendet werden und für jede Entwicklerkarriere im Jahr 2026 unverzichtbar sind. Dieses Einsteiger-Tutorial deckt alles ab, von der Erstellung Ihres ersten Kontos bis zur Zusammenarbeit an Open-Source-Projekten.
📋 Table of Contents
Was ist GitHub vs. Git?
- Git: Lokale Versionskontrollsoftware – verfolgt Änderungen an Ihrem Code
- GitHub: Cloud-Plattform, die Ihre Git-Repositorys hostet – Backup + Zusammenarbeit
- Git funktioniert ohne GitHub; GitHub erfordert Git
Aufstellen
# Install Git
# macOS: brew install git
# Ubuntu: sudo apt install git
# Windows: git-scm.com/download/win
git --version # verify
# Configure identity (required for commits)
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
# Create GitHub account at github.com (free)
# Set up SSH key (recommended over HTTPS)
ssh-keygen -t ed25519 -C "you@example.com"
cat ~/.ssh/id_ed25519.pub # copy this to GitHub Settings → SSH Keys
Kern-Workflow
# Create a new repository on GitHub, then:
git clone git@github.com:yourusername/your-repo.git
cd your-repo
# Make changes, then commit
git add . # stage all changes
git add specific-file.py # stage specific file
git commit -m "feat: add user login"
git push origin main # push to GitHub
# See what changed
git status # what's staged/unstaged
git diff # what changed (unstaged)
git log --oneline # commit history
# Undo mistakes
git restore file.py # undo unstaged changes
git restore --staged file.py # unstage
git reset HEAD~1 --mixed # undo last commit (keep changes)
Verzweigung für die Zusammenarbeit
# Create feature branch
git checkout -b feature/user-auth
# Make changes...
git add . && git commit -m "feat: add JWT authentication"
git push origin feature/user-auth
# Open Pull Request on GitHub:
# 1. Go to your repo on github.com
# 2. Click "Compare & pull request"
# 3. Add description, request reviewers
# 4. Merge when approved
# After PR merged, update local main
git checkout main
git pull origin main
git branch -d feature/user-auth # delete local branch
Grundlegende GitHub-Funktionen
- Probleme: Verfolgen Sie Fehler und Funktionsanfragen
- Pull-Requests (PRs): Codeänderungen vorschlagen und überprüfen
- GitHub-Aktionen: Automatisiertes CI/CD (unser CI/CD-Leitfaden deckt dies ab)
- GitHub-Seiten: Kostenloses Hosting für statische Websites
- GitHub-Copilot: AI-Code-Vervollständigung
- Diskussionen: Community-Fragen und Antworten für Ihr Projekt
Beitrag zu Open Source
# Fork a project on GitHub, then:
git clone git@github.com:YOURUSERNAME/forked-repo.git
cd forked-repo
# Add original repo as upstream
git remote add upstream git@github.com:ORIGINAL/repo.git
# Create branch, make changes, push
git checkout -b fix/typo-in-readme
# make your changes...
git add . && git commit -m "fix: correct typo in README"
git push origin fix/typo-in-readme
# Open PR on GitHub from your fork to original repo
# Be descriptive: what changed and why
Profil README (Zeigen Sie Ihre Arbeit)
Erstellen Sie ein spezielles Repo mit Ihrem Benutzernamen → README.md wird in Ihrem GitHub-Profil angezeigt. Dies ist Ihr Entwicklerportfolio.
GitHub im Jahr 2026 ist für jeden Entwickler obligatorisch. Ihr GitHub-Profil IST Ihr Portfolio – jeder Arbeitgeber wird es überprüfen. Beginnen Sie, sich täglich zu engagieren, tragen Sie zu Open Source bei und zeigen Sie in Ihrem Profil aktive Entwicklungsarbeit.
🔗 Share this article
✍️ Leave a Comment