lvjian700
9/20/2017 - 7:34 AM

Git scripts

A collection of scripts

# force sync submodules
git submodule deinit -f .
git submodule update --init

# Show pretty format for 1 file
# output
# 2768bb2,Update performance report,2017-10-03T17:14:16+08:00
# 00c7c1e,Update performance report,2017-10-03T16:18:09+08:00
# 1d42fc9,Update performance report,2017-09-28T09:40:33+08:00
git log --since="2 weeks ago" --pretty=format:'%h,%s,%cI' --date=short README.md

# show commit content
git show 2768bb2:README.md