How to list the files in current directory along with their versions??
ie I want to see something like this:
foo.c @ cdc8bc8
Makefile @ ab93df1
foo.h @ 92af931
您可以使用git log
或gitk
查看文件的历史记录。
This will get you close, but I'm not sure there's a way to do exactly what you want...
git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
This is from an article of must have git aliases - check that page out - a bunch of cool examples.
For all the files in the current directory:
git log --stat .
For just a particular file:
git log -- myfile.txt
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.