I am developing a Git Server using JGit. So I extended org.eclipse.jgit.http.server.GitServlet. I can clone the repository but whenever want to push my local repo back to the server git returns the following error: Authentication failed for 'http://localhost:8080/TestRepo/'
So how can I implement an authentication mechanism for GitServlet to accept credentials? (both on push and clone/fetch operations).