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

电子商务网站建设期中wordpress页面链接地址

电子商务网站建设期中,wordpress页面链接地址,做童装在哪个网站找客户,室内联盟官网参考文章:详解如何在项目中使用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/217995/

相关文章:

  • 免费的建手机网站网站设计的机构
  • 网站蓝色如何做体育彩票网站
  • 南通通州住房和城乡建设网站友情链接源码
  • 网站设计公司网页设计无锡网站建设收费
  • 个人做的网站百度搜索不到wordpress+4+chm
  • 网站建设公司专业网站费用报价简述网站的建设流程
  • 推广网站的方法有搜索交换友情链接前后必须要注意的几点
  • 安徽酒店网站建设wordpress+图片库
  • 网站建设数据库的选择网站开发简直
  • 佛山网站建设公司哪个性比价好些网站帮企业做推广价格怎么算
  • wordpress的模板是什么杭州江干区抖音seo品牌
  • 东莞数据线厂家东莞网站建设建设厅网站上人员怎么导出
  • 小程序视频网站开发做网站麻烦么
  • 网站建设违约责任条款国内设计师交流网站
  • 网站设计的主要机构有哪些网站开发上线流程图
  • 做企业网站的字体大小要求沟通交流型网站广告如何做
  • 网站如何做微信支付宝支付宝支付制作公司网页需求表
  • 网站建设与管理管理课程广州网络科技有限公司有哪些
  • 莆田seo建站网站建设的数据库设计图
  • 网站建设工具的种类浏览器 网络 网站
  • 如何发布自己做的网站网站快备
  • pc网站做成移动网站广东建设工程中标公示网站
  • 哈尔滨网站建设公司名字蓝色风格企业网站模板
  • 口碑好网站建设公司程序员免费自学网站
  • 荆门网站开发有哪些wordpress 去除表格
  • 网站没备案或与实际备案不符怎么用大淘客做网站
  • 理县网站建设公司网站设计与制作公司
  • 怎么把网站横幅做很大优质高职院建设网站
  • 优秀网站作品下载wordpress 调用文章id
  • 网站建设推广方法人防网站建设