Git · Junior · Pytanie 25 z 75
Jak usunąć gałąź w zdalnym repozytorium?
- 1
git branch -d origin/feature - ✓Poprawna odpowiedź:
git push origin --delete feature - 3
git fetch --delete feature
Wyjaśnienie
git branch -d origin/feature usunąłby tylko twoją lokalną kopię gałęzi zdalnej. Platformy potrafią też automatycznie usuwać gałąź po scaleniu pull requesta.