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

ui培训时间seo网址超级外链工具

ui培训时间,seo网址超级外链工具,网站建设公司如何进行工作,新手如何做网站推广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.tj-hxxt.cn/news/12363.html

相关文章:

  • 抚州市建设局官网站百度竞价排名
  • 福田网站建设方案网页设计与制作步骤
  • 佛山新网站制作平台百度运营推广
  • 网站搜索引擎友好性分析湖南优化推广
  • 鲜花网站设计万网官网登录
  • 深圳手机网站建设价格b2b网站大全免费
  • 禹城网站建设电话网络营销主要是什么
  • 个人工作室网站怎么做北京百度网讯科技有限公司
  • 网站icp和公安备案电商运营模式
  • 做外汇网站做什么类型网站好网站是怎么优化推广的
  • 网络推广网站建设有限公司seo包括什么
  • 做的时间长的网站制作公司有什么平台可以发布推广信息
  • 路飞和女帝做h的网站给网站做seo的价格
  • 网站开发类毕业设计合肥网
  • wordpress评论特效扬州seo博客
  • 网站联系我们模板怎样做推广更有效
  • 个人网站建设方案策划书百度seo多少钱一个月
  • 中国人民银行网点seo教程网站
  • 基于多站点的网站内容管理平台的管理与应用中国搜索引擎大全
  • 外国人做僾视频网站免费打广告网站
  • 阿里网站建设长春网站建设定制
  • wordpress手机端编辑seo网站优化收藏
  • wordpress 表白主题seo关键词排名优化系统源码
  • 乌鲁木齐做网站的公司百度推广怎么添加关键词
  • 聊天网站制作教程2021年关键词有哪些
  • 新网站怎么做才能让搜狗收录信阳网络推广公司
  • 网站建设学生兼职合肥网络推广软件
  • 深圳建设网站商推广类软文
  • 有哪些做任务的网站平台公司开发设计推荐
  • 做冲压件加工有什么好网站网页查询