Автоматический перенос изменений из ветки master в рабочее дерево?
пытаюсь перенести изменения ветки master из локального репозитория git в удалённый (не bare), и ожидаю что автоматически изменятся файлы в рабочем дереве. Но получаю ошибку:
error: refusing to update checked out branch: refs/heads/master error: By default, updating the current branch in a non-bare repository is denied, because it will make the index and work tree inconsistent with what you pushed, and will require 'git reset --hard' to match the work tree to HEAD. You can set the 'receive.denyCurrentBranch' configuration variable to 'ignore' or 'warn' in the remote repository to allow pushing into its current branch; however, this is not recommended unless you arranged to update its work tree to match what you pushed in some other way. To squelch this message and still keep the default behaviour, set 'receive.denyCurrentBranch' configuration variable to 'refuse'.
Remote Repository Updates Branch Update : master ... Result: REJECTED_OTHER_REASON
Как сделать так чтобы при push в удаленный сервер автоматически менялось рабочее дерево?