当前位置: 首页 > news >正文

织梦的手机端网站怎样建设网站后台

织梦的手机端网站,怎样建设网站后台,做国外的众筹网站有哪些,企业网站公司单位有哪些参考文章:详解如何在项目中使用git Hooks(husky、yorkie) git hooks钩子 git hooks是一些自定义的脚本,用于控制git工作的流程,分为客户端钩子和服务端钩子。  ~/work/step-time/ [master*] ll .git/hooks total…

参考文章:详解如何在项目中使用git Hooks(husky、yorkie)

git hooks钩子

git hooks是一些自定义的脚本,用于控制git工作的流程,分为客户端钩子和服务端钩子。

 ~/work/step-time/ [master+*] ll .git/hooks 
total 128
-rwxr-xr-x  1 admin  staff   478B  8 19 18:52 applypatch-msg.sample
-rwxr-xr-x  1 admin  staff   896B  8 19 18:52 commit-msg.sample
-rwxr-xr-x  1 admin  staff   4.5K  8 19 18:52 fsmonitor-watchman.sample
-rwxr-xr-x  1 admin  staff   189B  8 19 18:52 post-update.sample
-rwxr-xr-x  1 admin  staff   424B  8 19 18:52 pre-applypatch.sample
-rwxr-xr-x  1 admin  staff   1.6K 11 12 17:42 pre-commit
-rwxr-xr-x  1 admin  staff   1.6K 11 12 17:00 pre-commit.sample.bck
-rwxr-xr-x  1 admin  staff   416B  8 19 18:52 pre-merge-commit.sample
-rwxr-xr-x  1 admin  staff   1.3K  8 19 18:52 pre-push.sample
-rwxr-xr-x  1 admin  staff   4.8K  8 19 18:52 pre-rebase.sample
-rwxr-xr-x  1 admin  staff   544B  8 19 18:52 pre-receive.sample
-rwxr-xr-x  1 admin  staff   1.5K  8 19 18:52 prepare-commit-msg.sample
-rwxr-xr-x  1 admin  staff   2.7K  8 19 18:52 push-to-checkout.sample
-rwxr-xr-x  1 admin  staff   3.6K  8 19 18:52 update.sample
 ~/work/step-time/ [master+*] 
 ~/work/step-time/ [master+*] 
 ~/work/step-time/ [master+*] 

.git.hooks目录下的就是勾子,想要运行她们只需要去除.sample后缀,并且把文件改成可执行的就可以了。

pre-commit.sample介绍

#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments.  The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook, rename this file to "pre-commit".# 获取提交的文件名
if git rev-parse --verify HEAD >/dev/null 2>&1
thenagainst=HEAD
else# Initial commit: diff against an empty tree objectagainst=$(git hash-object -t tree /dev/null)
fi# If you want to allow non-ASCII filenames set this variable to true.
allownonascii=$(git config --type=bool hooks.allownonascii)# Redirect output to stderr.
exec 1>&2# Cross platform projects tend to avoid non-ASCII filenames; prevent
# them from being added to the repository. We exploit the fact that the
# printable range starts at the space character and ends with tilde.
if [ "$allownonascii" != "true" ] &&# Note that the use of brackets around a tr range is ok here, (it's# even required, for portability to Solaris 10's /usr/bin/tr), since# the square bracket bytes happen to fall in the designated range.## 获取改动的文件名,使用tr删除ascii表的0到126的字符,## 也就是计算non-ASCII 的字符数量test $(git diff --cached --name-only --diff-filter=A -z $against |LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
thencat <<\EOF
Error: Attempt to add a non-ASCII file name.This can cause problems if you want to work with people on other platforms.To be portable it is advisable to rename the file.If you know what you are doing you can disable this check using:git config hooks.allownonascii true
EOFexit 1
fi# If there are whitespace errors, print the offending file names and fail.
exec git diff-index --check --cached $against --
http://www.yayakq.cn/news/473435/

相关文章:

  • 摄影网站制作流程正定网站制作
  • 中山网站建设方案外包做动漫姓氏头像的网站
  • 有口碑的顺德网站建设品牌网站建设小蝌蚪1
  • 事业单位建立网站番禺网站建设价格
  • 初中做历史的网站服务好的做培训网站
  • 在虚拟主机上建设多个网站公司域名注册步骤
  • 长沙网站建设流程建一个wordpress网站成本
  • 网盘搜索网站 怎么做seo诊断网站
  • 外贸soho怎么建网站网络推广软文
  • 东山县城乡规划建设局网站新建网站如何调试
  • wordpress 新文章网站sem优化怎么做
  • 科技网站欣赏佛山网页设计
  • 网站建设客户需求表 文库群团组织网站建设
  • 张家口网站网站建设网站后台无法编辑文字
  • 上海网站专业制作人力外包和项目外包哪个好
  • 网站需求分析报告范文网站界面设计的发展趋势
  • 网站 的建设意义网页设计培训好学吗
  • 杭州精品课程网站建设wordpress poststatus
  • 赣州网站优化公司怎么找到精准客户资源
  • 可以投稿的写作网站域名解析 别人网站
  • 点击运行显示网站正在建设网上如何推广平台
  • 重庆奉节网站建设公司哪家专业顺企网官网下载
  • 比较好的能组数学卷的网站做教案的去除wordpress评论电子邮件
  • 网站建设综合推荐网络推广中心
  • 佛山市三山新城建设局网站河北seo
  • 网站怎么做关键词排名wordpress 输出json
  • 网站建设的业务范围手机建设网站策划书
  • 陕西企业电脑网站制作做寝室介绍网站
  • 公网ip做网站wordpress怎么调用多语言包
  • 工商信息查询泉州seo排名公司