Show Menu
Cheatography

Git Kommandos Cheat Sheet (DRAFT) by

Elementare Git Kommandos

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Initia­lis­ierung

git config --global user.name <us­ern­ame>
Benutz­ername speichern
git config --global user.email <ma­il>
Emaila­ddresse speichern
git init
Repository in aktuellem Ordner anlegen
git status
Aktuellen Status des Reposi­torys angeben
git add filename
Datei zum Staging hinzufügen
git commit -m message
Änderungen im Staging Bereich commiten

Branching

git branch
Alle bekannten Branches auflisten
git checkout branchname
Zu einem Branch wechseln
git merge branchname
Einen Branch in den aktuellen mergen
 

Arbeiten mit remotes

git clone repository
Existi­erendes Remote Repository klonen (lokaler Pfad, http oder ssh URL)
git remote add name url
Neues remote repository hinzufügen
git fetch