文件操作 - pre-merge-commit.sample
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/git-core/templates/hooks/pre-merge-commit.sample
编辑文件内容
#!/bin/sh # # An example hook script to verify what is about to be committed. # Called by "git merge" with no arguments. The hook should # exit with non-zero status after issuing an appropriate message to # stderr if it wants to stop the merge commit. # # To enable this hook, rename this file to "pre-merge-commit". . git-sh-setup test -x "$GIT_DIR/hooks/pre-commit" && exec "$GIT_DIR/hooks/pre-commit" :
修改文件时间
将文件时间修改为当前时间的前一年
删除文件