当前位置: 首页 > 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.mnyf.cn/news/51975.html

相关文章:

  • 做网站的外包公司石家庄seo推广公司
  • 网站联动是什么意思百度新闻搜索
  • 网站后台图片不显示百度快照优化排名怎么做
  • C语言也能干大事网站开发pdf青岛seo关键词优化公司
  • 做网店的进货网站app开发需要哪些技术
  • 武汉政府网站建设广州seo网站服务公司
  • 青岛建网站选青岛博采网络百度收录方法
  • 网站提升排名香港百度广告
  • 网站备案提示广告服务平台
  • 福州网站建设公司中小企业何鹏seo
  • 企业网站怎么做外链口碑营销怎么做
  • 衡阳做网站建设的公司网页模版
  • 成都优化网站源头厂家怎么在百度上推广自己的产品
  • 国外产品短视频拍摄视频号排名优化帝搜软件
  • 前端很难学吗网站关键词百度自然排名优化
  • 安心保险官方网站百度关键词如何优化
  • 做网站得叫什么aso优化师主要是干嘛的
  • 项目推广app百度seo优化是什么
  • 网站建设制作 企业站开发哪家好小说推广关键词怎么弄
  • 南宁网站制作野狼seo团队
  • 上行30m可以做网站吗手机优化什么意思
  • 做电影网站 需要进那些群郑州seo优化公司
  • 网页设计与网站建设第05网络营销的基本方法有哪些
  • 双语网站代码山西网页制作
  • 吉林手机版建站系统开发腾讯广告推广怎么做
  • 网站日志状态码关键词自动优化
  • 全栈开发seo具体怎么优化
  • 怎么利用代码做网站手机百度搜索
  • 网站建设模块查看百度关键词价格
  • 网站抓取qq网络推广平台