git日誌 每天匯出 shell指令碼

2021-07-08 13:30:28 字數 915 閱讀 9926

#!/bin/bash

#用途:這個指令碼是用來每天匯出git的日誌用的

#history:2015.01.25 by kaifeng

gameclient_path=d:/yr_xcq_gameclient/

txt_path=d:/phpstudy/www/xlegend/client_log/`date +%y-%m-%d-%h_%m_%s.txt`

cd $gameclient_path

git pull -v --no-rebase --progress  "origin"

git log --pretty=format:"%ai , %an: %s" --since="1 day ago" | grep -v  "merge branch 'master'" >>$txt_path

自己看,不懂自己研究!效果如下:

2015-12-02 17:50:02 +0800 , zhuoqi: 刪除沒有訊息

2015-12-02 17:44:47 +0800 , zhuoqi: 1、獎勵大廳新ui修改完畢 2、修改訊息接收。 3、刪除沒用的測試檔案。

2015-12-02 17:26:52 +0800 , hanzhigang: chatcenter.as優化, 私聊和檢視玩家裝備,傳的引數,可以是string,也可以是int64

2015-12-02 17:00:03 +0800 , yr_guwanyuan: 加入ctrl+滑鼠左鍵,直接檢視場景裡的人物的裝備

2015-12-02 16:32:11 +0800 , yr_guwanyuan: 修復乙個移入顏色濾鏡的使用錯誤bug

2015-12-02 16:26:04 +0800 , hujian: ui替換

2015-12-02 16:25:43 +0800 , hujian: ui替換

定時清理7天前的Tomcat日誌shell指令碼

一 clear tomcat.sh 編輯 linux下執行命令,vi clear tomcat.sh 回車 貼上如下指令碼,wq儲存。bin bash logs path home tomcat 9.0 logs 定時清理7天前的tomcat日誌指令碼 find logs path mtime 7 ...

uWsgi日誌定時每天切割

from apscheduler.schedulers.background import backgroundscheduler 子程序排程器 from apscheduler.executors.pool import threadpoolexecutor 執行器 import os,time,...

Cornerstone匯出Log日誌

由於需要匯出部分svn log日誌,發現maccornerstone目前好像沒有匯出選項,故通過控制台 terminal 列印解決,總結如下 1.匯出專案全部log cd 專案工程目錄下 svn log2.匯出某一時間段log svn log vr 3.匯出log為xml格式 svn log xml...