I often want to break my new code into several commits. I also want to check that each compilation command.
Is there any effective way to locally ensure that each compilation commit without the need to add, compile, and save data through each?
You can pre-commit Git Hook to make sure that all the code you are trying to execute can compile.
There are some samples listed in the .git / hooks folder of your repository.
Further information on Git Hooks can be found here .
Source: https://habr.com/ru/post/1655959/More articles:WooCommerce basket-based login redirection - phpHow can I support both Unicode and Multi-Byte Character Set in Static library (.lib)? - c ++Преобразование строки в JSON в С# - jsonChange font color of X and Y - javascriptDocking functions in the Golang to check my routes http - goprint a static variable from a member function of a template class in gdb - c ++display list items in 2 columns - htmlRights Protection Level PACKAGE_USAGE_STATS - androidConnecting to a HBase Remote Service Using Java - javabrowser response to dragover - html5 drag and drop - html5All Articles