Discussion Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

SMF - Just Installed!

Author Topic: git push error on Git-1.7.0.2 (windows)  (Read 62 times)

0 Members and 1 Guest are viewing this topic.

wugi

  • Administrator
  • Newbie
  • *****
  • Posts: 30
    • View Profile
    • Email
git push error on Git-1.7.0.2 (windows)
« on: June 10, 2010, 12:28:43 AM »
$ git push
root@192.168.168.1's password:
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 315 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree inconsist
ent
remote: error: with what you pushed, and will require 'git reset --hard' to matc
h
remote: error: the work tree to HEAD.
remote: error:
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to

remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into

remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some

remote: error: other way.
remote: error:
remote: error: To squelch this message and still keep the default behaviour, set

remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To ssh://root@192.168.168.1/opt/git_root/a.git
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'ssh://root@192.168.168.1/opt/git_root/a.git'


Administrator@BENQ-S73 /d/share/abc/ab/.git (GIT_DIR!)
$
Logged