简体   繁体   中英

GIT: see file list and their versions

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 loggitk查看文件的历史记录。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM