I have been making a local git server by using jgit. Following is my code repository for local git server.
https://github.com/masumcse1/mygitserver
git clone http://localhost:9090/mygitserver/git/customer
This program is working for all type basic git command (clone, push, pull). Now i want to send custom error from this servlet after pushing wrong file (other than.java file) from any user.
User will receive this error message from his git client. any one please explain how can i send this error for git client after push any thing wrong file type.
You can do it with a server-side hook
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.