Git · Middle · Frage 45 von 75
Wie sieht man, welche Branches einen bestimmten Commit enthalten?
- 1
git log --branches <hash> - 2
git branch --contains <hash> - 3
git show --branch <hash>
Antwort zeigen
Richtige Antwort: git branch --contains <hash>
Erklärung
Nützlich, um zu prüfen, ob ein Fix einen Release-Branch erreicht hat. Mit -r für entfernte Branches, oder git tag --contains für Releases.