I've noticed that gitblit doesn't recognize unpacked git repositories per default.

Can I configure gitblit in such a way, that unpacked git repositories are recognized?

有帮助吗?

解决方案

Pushing to a repository with a work tree can have dangerous and unintended results. It is considered a best practice to only push to a bare repository. If you search StackOverflow or Google you will find many explanations on why. One good explanation is available here, but there are others. Bare repositories are meant to be used as the centralized distribution point for development. Gitblit will allow you to view repositories with attached worktrees but it will not allow you to push into them.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top