I pushed my code to the remote end as usual, but the push failed, prompting "[remote rejected] (Gitblit does not allow pushes to XXXX" because it has a working copy! " ,what shouid i do,Please
Asked
Active
Viewed 149 times
0
-
i think it is related to `gitblit`, not git itself. – Lei Yang Jul 12 '21 at 02:23
-
1Is `gitblit` a hosting service set up by yourself? For a server side repository, it's required to be initialized as a bare repository. The error indicates it's been initialized as a normal repository that has a work tree. – ElpieKay Jul 12 '21 at 02:29
-
https://stackoverflow.com/search?q=%5Bgit%5D+push+working+tree – phd Jul 12 '21 at 02:56
-
https://stackoverflow.com/search?q=%5Bgit%5D+error%3A+refusing+to+update+checked+out+branch – phd Jul 12 '21 at 02:57