[精讚] [會員登入]
614

如何用git log功能產生有固定格式的commit紀錄

how to create a git commit history log file with custom format

分享此文連結 //n.sfs.tw/13757

分享連結 如何用git log功能產生有固定格式的commit紀錄@外行中的外行
(文章歡迎轉載,務必尊重版權註明連結來源)
2019-11-06 15:54:54 最後編修
2019-11-04 16:18:34 By jung
 

為了產生commit紀錄當報告

之前都是用貼圖的方法,

後來想到可以用git自己的log功能

git log --since="2019-01-01" --pretty=format:'%an,%cd,%s,%h' > authserver-log.csv

生出一個csv檔案,再貼到文件裡就可以了

我試過了如果要產生表格欄位,只能輸出成csv格式

以下是git log的參數功能

https://git-scm.com/book/zh-tw/v2/Git-%E5%9F%BA%E7%A4%8E-%E6%AA%A2%E8%A6%96%E6%8F%90%E4%BA%A4%E7%9A%84%E6%AD%B7%E5%8F%B2%E8%A8%98%E9%8C%84

https://reurl.cc/Ylqrzo

https://stackoverflow.com/questions/10418056/how-do-i-generate-a-git-commit-log-for-the-last-month-and-export-it-as-csv

 

END

你可能感興趣的文章

unknown issue after downgrade to intellij idea community version 使用社群版遇到的奇怪問題

在intellij IDEA解決檔案內容顯示為UTF-8字碼而不是中文的問題 how to show correct language content of file, instead of utf-8 encoded charactors

如何用git log功能產生有固定格式的commit紀錄 how to create a git commit history log file with custom format

intellij IDEA git設定說明 whenever using git push fuction in the intellij IDEA

specific instructions to create a maven archetype from local existing project. Generate an archetype from the project

在IDEA從JDK8升級到JDK11遇到的奇怪問題 在IDEA遇到的JAVA11函式庫引入問題

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

[網管心得]qnap+proxmox 韌體更新及nfs掛載或變更

在windows server建立radius服務使用active directory帳號驗證 setup windows server to add radius service using active directory accounts for authentication

更新程式取消google recaptcha改用輸入驗證碼 update cnclibs to 0.0.8.6

how to resolve memory allocation issue on proxmox when creating vm, sometimes the log shows fail message of Cannot_allocate_memory

determine strings that include numbers and spaces differ from Highest and Lowest numbers inside strings that includes spaces