Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 15, 2022 11:43 am GMT

Automation PHP Code Formatting before(pre) git commit

Who cares about code formatting and comments? Humans...

Imagine yourself fixing code style issues day after day. Wouldn't you want to do something more interesting by formatting code before committing?

Want to learn how to format code in PHP before committing to git repository?

Git hooks are scripts that will run when a certain event occurs in git like git push, git pull, git commit, etcWe can find git hooks at .git/hooks in a particular git repository.

Pre-commit is a git hook, that triggers custom scripts or commands during the execution of a git commit.

Here Automation - PHP Code Formatting before(pre) git commit to check out.


Original Link: https://dev.to/canopassoftware/automation-php-code-formatting-beforepre-git-commit-3779

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To