Git: Pre-commit hook (Java). This question is used to evaluate your skills on creating


Git: Pre-commit hook (Java).
This question is used to evaluate your skills on creating a simple pre-commit hook in Git.
For this, you will be evaluated based on the following operations. The remote repository has been pre-configured into your local git repository.
Your local git repository will be linkedlist_java.
Push the master branch of local git repository to the remote repository.
Create a new branch with the name new_branch, and checkout into it.
Make a change to the Java file, make a commit and push the new branch to the remote repository.
Create a pre-commit hook, that will prevent from committing files with non-alphanumeric characters in the file name.


Leave a Reply

Your email address will not be published. Required fields are marked *