How to add precheck and pre scripts before git commit #84930
Replies: 3 comments
-
Thanks for posting in the GitHub Community, @Nishant-Budia-Jar ! We're happy you're here. You are more likely to get a useful response if you are posting your question in the applicable category, the Discussions category is solely related to conversations around the GitHub product Discussions. We’ve moved your post to our Programming Help 🧑💻 category, which is more appropriate for this type of discussion. Please review our guidelines about the Programming Help category for more information. |
Beta Was this translation helpful? Give feedback.
-
you can probably try git hooks, these are scripts that Git executes before or after certain events, such as committing, merging, or pushing. You can place your custom scripts in the appropriate hook file, and Git will run them automatically. For adding pre-checks and pre-scripts before a commit, you can use the pre-commit hook. |
Beta Was this translation helpful? Give feedback.
-
Check out Husky |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
How to add precheck and pre scripts before git commit
Beta Was this translation helpful? Give feedback.
All reactions