Git Befehle / Cheat sheet / Spickzettel
Neuen Branch erstellen und wechselnLink to this section
git checkout -b TASK-123Branch wechselnLink to this section
git checkout branchnameCommit mit Kommentar hinzufügenLink to this section
git commit -m '[Task-123] Kommentar ...'Git merge (vorher Checkout master)Link to this section
git merge --no-ff Task-123Branch pushenLink to this section
git push origin Task-123Zeige welche Dateien in dem Branch zum Master verändert wurdenLink to this section
git diff --name-status maser Task-123Git Head zurücksetzenLink to this section
git reset --hard HEADGit Remote Branch löschenLink to this section
git push origin :BRANCH-123Git Local Branch löschenLink to this section
git branch -d BRANCH-123oder
git branch -D BRANCH-123Git Cherry PickLink to this section
git cherry-pick COMMIT-NUMMERGit GET all remote branchesLink to this section
for remote in `git branch -r `; do git branch --track $remote; doneGit UPDATE all remote branchesLink to this section
for remote in `git branch -r `; do git checkout $remote ; git pull; done