You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/08-customizing-git/sections/hooks.asc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ You may use it in conjunction with a commit template to programmatically insert
47
47
48
48
The `commit-msg` hook takes one parameter, which again is the path to a temporary file that contains the commit message written by the developer.
49
49
If this script exits non-zero, Git aborts the commit process, so you can use it to validate your project state or commit message before allowing a commit to go through.
50
-
In the last section of this chapter, We'll demonstrate using this hook to check that your commit message is conformant to a required pattern.
50
+
In the last section of this chapter, we'll demonstrate using this hook to check that your commit message is conformant to a required pattern.
51
51
52
52
After the entire commit process is completed, the `post-commit` hook runs.
53
53
It doesn't take any parameters, but you can easily get the last commit by running `git log -1 HEAD`.
0 commit comments