git push fails: `refusing to update checked out branch: refs/heads/master`

后端 未结 6 1982
抹茶落季
抹茶落季 2020-12-04 17:48

I want to store my local modifications to JBoss config in git. For this, I have set up the following structure:

lrwxrwxrwx  1 jboss jboss        19 Jan 24 11         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 18:04

    Create the origin (local) repository as a bare repository (ie. git init --bare), or checkout a branch in there which is not master.

提交回复
热议问题