When using the Git HTTP protocol, you can force the use of username/password
authentication for all pull, push, fetch, and ls-remote operations.
Procedure
-
Stop your Tomcat server.
-
Open the following file to edit it:
<tomcat_path>\WEB-INF\classes\configuration.properties
-
Add the following line:
git.conf.http.onlyUsernamePasswordAuth=true
-
Restart your Apache Tomcat server.