[GIT] warning: updating the current branch



Осиливаю тут гит, и возникла непонятка, чего это он ругается, когда делаешь push в master? Вот такой вот ворнинг:

warning: updating the current branch
warning: Updating the currently checked out branch may cause confusion,
warning: as the index and work tree do not reflect changes that are in HEAD.

warning: As a result, you may see the changes you just pushed into it
warning: reverted when you run 'git diff' over there, and you may want
warning: to run 'git reset --hard' before starting to work to recover.
warning: You can set 'receive.denyCurrentBranch' configuration variable to
warning: 'refuse' in the remote repository to forbid pushing into its
warning: current branch.
warning: To allow pushing into the current branch, you can set it to 'ignore';
warning: but this is not recommended unless you arranged to update its work
warning: tree to match what you pushed in some other way.
warning: To squelch this message, you can set it to 'warn'.
warning: Note that the default will change in a future version of git
warning: to refuse updating the current branch unless you have the
warning: configuration variable set to either 'ignore' or 'warn'.

Re: [GIT] warning: updating the current branch

А, все, нагуглил. Репозиторий должен быть bare, в который пушишь.

anotheranonymous ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.