![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
Pleidy
这个作者很懒,什么都没留下…
展开
-
php项目github自动pull到服务器
项目名:web一、自动触发1、在服务器添加脚本文件:gitpull.sh#!/bin/shcd /www/webgit reset --hard origin/master git clean -f git pull 2>&1 git checkout master# 注:若脚本文件路径不在www用户组的路径下,需要在www对应用户组路径下添加脚本文件# 查看用户组路径(找到对应用户组即可):cat /etc/passwd2、创建脚本(gitpull.sh)回调接.原创 2021-04-12 22:05:33 · 218 阅读 · 0 评论 -
Git问题解决:warning: Pulling without specifying how to reconcile divergent branches is discouraged. You
当使用git版本为2.27.0以上时,使用git pull命令出现以下的警告:warning: Pulling without specifying how to reconcile divergent branches isdiscouraged. You can squelch this message by running one of the followingcommands sometime before your next pull: git config pull.rebase原创 2021-04-12 16:42:56 · 31660 阅读 · 0 评论