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

宁波网站建设相信荣胜网络百度指数的网址是什么

宁波网站建设相信荣胜网络,百度指数的网址是什么,怎么做自己的博客网站,南京网站建设哪家专业git 提交代码&#xff0c;推送代码&#xff0c;可以通过在 .git/hooks 目录中的 bash 脚本来做一定的验证工作。 本例使用插件 maven-antrun-plugin 自动输出脚本至 .git/hooks 目录中&#xff0c;在 pom.xml 中的使用示例如下&#xff1a; <plugin><groupId>org.…

git 提交代码,推送代码,可以通过在 .git/hooks 目录中的 bash 脚本来做一定的验证工作。

本例使用插件 maven-antrun-plugin 自动输出脚本至 .git/hooks 目录中,在 pom.xml 中的使用示例如下:

        <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId><executions><execution><phase>generate-sources</phase><goals><goal>run</goal></goals><configuration><tasks><!-- 生成commit-msg文件 --><echo file="${basedir}/.git/hooks/commit-msg"message="#!/usr/bin/env bash${line.separator}${line.separator}"/><echo file="${basedir}/.git/hooks/commit-msg" append="true"message="# Color codes${line.separator}red='\033[0;31m'${line.separator}yellow='\033[0;33m'${line.separator}blue='\033[0;34m'${line.separator}NC='\033[0m' # No colors"/><echo file="${basedir}/.git/hooks/commit-msg" append="true"message="${line.separator}${line.separator}"/><echo file="${basedir}/.git/hooks/commit-msg" append="true"message="# Regex &amp; Usage${line.separator}commit_regex=&quot;^(\[[A-Za-z]+\-[0-9]+\]|merge|Merge)\s&quot;${line.separator}error_message=&quot;Aborting commit. Commit message must start with ${yellow} 开发任务编号&quot;${line.separator}usage=&quot;开发任务编号 Commit Message. \n${blue}示例: [TASK-101] 完成A功能开发&quot;"/><echo file="${basedir}/.git/hooks/commit-msg" append="true"message="${line.separator}${line.separator}"/><echo file="${basedir}/.git/hooks/commit-msg" append="true"message="if ! grep -qE &quot;$commit_regex&quot; &quot;$1&quot;; then${line.separator}"/><echo file="${basedir}/.git/hooks/commit-msg" append="true"message="  printf &quot;${red}$error_message\n&quot;${line.separator}"/><echo file="${basedir}/.git/hooks/commit-msg" append="true"message="  printf &quot;${yellow}Commit Regex: ${NC}${commit_regex}\n&quot;${line.separator}"/><echo file="${basedir}/.git/hooks/commit-msg" append="true"message="  printf &quot;${red}Usage: ${NC}${usage}\n&quot;${line.separator}"/><echo file="${basedir}/.git/hooks/commit-msg" append="true"message="  exit 1${line.separator}fi"/><!-- 生成pre-push文件 --><echo file="${basedir}/.git/hooks/pre-push"message="#!/usr/bin/env bash${line.separator}${line.separator}"/><echo file="${basedir}/.git/hooks/pre-push" append="true"message="# Color codes${line.separator}red='\033[0;31m'${line.separator}yellow='\033[0;33m'"/><echo file="${basedir}/.git/hooks/pre-push" append="true"message="${line.separator}${line.separator}"/><echo file="${basedir}/.git/hooks/pre-push" append="true"message="command=&quot;./mvnw.cmd clean test&quot;${line.separator}${command}"/><echo file="${basedir}/.git/hooks/pre-push" append="true"message="${line.separator}${line.separator}"/><echo file="${basedir}/.git/hooks/pre-push" append="true"message="if ! [ $? -eq 0 ]; then${line.separator}"/><echo file="${basedir}/.git/hooks/pre-push" append="true"message="  printf &quot;${red}Make sure successfully execute command: ${yellow}$command${red}.&quot;${line.separator}"/><echo file="${basedir}/.git/hooks/pre-push" append="true"message="  exit 1${line.separator}fi"/><!-- 设置权限 --><chmod dir="${basedir}/.git/hooks" perm="755" includes="**/*"/></tasks></configuration></execution></executions></plugin>

插件会自动输出 commit-msgpre-push 两个脚本文件


(END)

http://www.jinmujx.cn/news/80287.html

相关文章:

  • 做微商截图的网站培训心得体会万能模板
  • 宝鸡市建设工程交易中心网站重庆森林影评
  • 自己做网站要会什么软件下载东莞seo建站哪家好
  • 杭州移动公司网站日本搜索引擎naver入口
  • 找家里做的工作到什么网站app推广接单发布平台
  • 十堰h5响应式网站西安百度推广联系方式
  • 做网站的客户资料交换qq群如何免费引流推广
  • 360上做网站谷歌play商店
  • 建设网站和app杭州制作公司网站
  • 网站开发一定找前端么网站网络营销公司
  • 工商局网站清算组备案怎么做青岛百度seo排名
  • 网站开发课程设计百度账户安全中心
  • 网站投入费用互联网营销师培训费用是多少
  • 佛山网站专家百度在线扫题入口
  • 哪哪个网站可以做兼职推广app赚钱
  • 绍兴网站建设哪家好随州今日头条新闻
  • 校园网站建设简介免费seo推广公司
  • 网站开发 方案北京seo课程培训
  • 普通网站建设的缺陷百度推广费
  • 网站诊断分析报告模板及优化执行方案.doc推广网络营销外包公司
  • 网站建设自助建站站长工具中文
  • 重庆大型的网站建设百度人工优化
  • 公司网页内容seo每日工作
  • 本溪网站设计西安seo外包平台
  • 东莞网站建设网站建立有趣的网络营销案例
  • amp 网站开发线上免费推广平台都有哪些
  • 长沙网站排名公司哪家好优化的近义词
  • 网站开发折旧做seo是什么意思
  • 国内有做外汇的正规网站吗如何拿高权重网站外链进行互换?
  • 深圳网站开发招聘优化用户体验