0

当我尝试将更改推送到本地存储库时出现此错误

remote: error: its current branch; however, this is not recommended unless you[K
remote: error: arranged to update its work tree to match what you pushed in some[K
remote: error: other way.[K
remote: error: [K
remote: error: To squelch this message and still keep the default behaviour, set[K
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.[K
To C:\LocalRepositories\CompareDateTime
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'C:\LocalRepositories\CompareDateTime'
4

1 回答 1

2

您正在尝试推送到远程的已签出分支,并且默认情况下您不能。

请参阅此问题以获取更多帮助。

于 2013-03-15T02:57:01.473 回答