! [remote reject] master & # 8594; master (branch currently checked) Error in git

I am very new when it comes to GIT. Here I tried to explain my error scenario. Please help me with the exact team.

I need to clear the repository at a remote GIT location. And I only have permission to clone them and click on my changes. I do not have permission to directly access GIT Remote. Repo. funder-sceduler.git and funder-request.git. Detailed way for them:

  • SSH: // gitadmin@svn.wps.wiley.com / apps / git / web-platform / dotcms / modules / funder-request.git
  • SSH: // gitadmin@svn.wps.wiley.com / apps / git / web-platform / dotcms / modules / funder-scheduler.git

Now I have cloned funder-scheduler.git in my local one. I added my changes. Then I committed the GIT. Then git click the initial wizard. It worked fine.

But when I do the same for funder-request.git, after running the 'git click start wizard' command, it gives the following error:

>$ git push origin master >Enter passphrase for key '/u/.ssh/id_rsa': >Counting objects: 81, done. >Compressing objects: 100% (61/61), done. >Writing objects: 100% (81/81), 215.86 KiB | 126.00 KiB/s, done. >Total 81 (delta 4), 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:// gitadmin@svn.wps.wiley.com /apps/git/web-platform/dotcms/modules/funder- request.git ! [remote rejected] master -> master (branch is currently checked out) error: failed to push some refs to 'ssh:// gitadmin@svn.wps.wiley.com /apps/git/we b-platform/dotcms/modules/funder-request.git' 

A request to help me with an accurate team to solve this problem. I do not understand the theoretical explanation, and I regret it.

+6
source share
1 answer

It seems that funder-request.git not a bare repo, that is, it has a working tree (files that come from branch verification).

See " all about" bare repositories - what, why, and how to fix a non-bare click "for more information:
Using a non-bare repo entails the risk of non-compliance with the contents of the working tree with the contents of the git repo itself.

You need to contact the administrator of this server and make it converted to an uncovered repo.
See " How to convert a git repository from normal to bare? "

+4
source

All Articles