Git · Junior · Frage 19 von 75
Wie legt man mit einem Befehl einen Branch an und wechselt zu ihm?
- 1
git switch -c feature - 2
git commit -b feature - 3
git branch --go feature
Antwort zeigen
Richtige Antwort: git switch -c feature
Erklärung
git switch -c (oder das ältere git checkout -b) legt den Branch am aktuellen Commit an und wechselt zu ihm. git branch feature allein legt ihn nur an.