The Journey of Life.....
Life Never Been Easy and at the end of lesson, you imperfectly learn....
Saturday, April 11, 2020
Listing files in full path (Linux)
Listing makefile in full path into a list via git ls-files
git ls-files | grep Makefile | tee makelist.txt
Saturday, March 21, 2020
Query git latest commit date
Query git latest commit date
cybertech:cybertech-01>
git ls-tree -r --name-only HEAD | while read filename; do echo "$(git log -1 --format="%ad" -- $filename) $filename"; done
Fri Mar 13 16:22:46 2020 +0800 Makefile
Tue Jan 14 09:27:02 2020 +0800 common/common.mk
cybertech:cybertech-01>
git ls-tree -r --name-only HEAD | while read filename; do echo "$(git log -1 --format="%as" -- $filename) $filename"; done
2020-03-13 16:22:46 +0800 Makefile
2020-01-14 09:27:02 +0800 common/common.mk
cybertech:cybertech-01>
git ls-tree -r --name-only HEAD | while read filename; do echo "$(git log --after="2020-3-1" --before="2020-3-21" -1 --format="%ai" -- $filename) $filename"; done
2020-03-13 16:22:46 +0800 Makefile
common/common.mk
References:
https://www.atlassian.com/git/tutorials/git-log
https://www.edureka.co/blog/git-format-commit-history/
https://git-scm.com/docs/git-log
Newer Posts
Older Posts
Home
Subscribe to:
Comments (Atom)