开发者

git log command with changed file and branch names export file into csv

I want to export git log with all the branches from remote repository using git log command, when I'm executing below command my all the commit id, message, author all the details are getting exported into csv file but i want add one more column like branch name to identify which commit id belongs to which branch.

Command

echo "commit id,author,date,message" > report.csv
  git log --date=local master --source --pretty="%x40%h%x2C%an%x2C%ad%x2C%x22%s开发者_运维百科%x22%x2C" | tr "\n" " " | tr "@" "\n" >> report.csv

output

git log command with changed file and branch names export file into csv

If you open the above csv file you can see list commit id with author but i want add another column branch and add the respective commit id branch name as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜