It’s simple:
git branch
# you're in a 'feature' branch
git fetch origin master:master
# now the master branch is up-to-date
For more information read the git-fetch man page.
It’s simple:
git branch
# you're in a 'feature' branch
git fetch origin master:master
# now the master branch is up-to-date
For more information read the git-fetch man page.
Here you can find some more reasons why it’s so important to comment your code
Интересно: после того, как я применил “extract class” рефакторинг к одному из классов, юнит тесты стали функциональными тестеми. Сначала я писал юнит-тесты для того, чтобы можно было рефакторить. Теперь мне надо писать новые юнит-тесты для последствий рефакторинга и переписаь старые с использованием моков, чтобы они опять стали юнит-тестами, а не функциональными.