Git pre-commit hook searching for filenames with space

前端 未结 0 1875
面向向阳花
面向向阳花 2021-01-25 18:34

my question is about git pre-commit hook.
i want to figure out, and disallow commits with filenames containing whitespaces.

#!/bin/bash
listchange=$(git di         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题