gitk

2021/8/14 23:10:46

本文主要是介绍gitk,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

gitk

gitk [<options>] [<revision range>] [--] [<path>…]

查看单个文件的变更历史

gitk -- CppPrimer/Content/Ch12_DynamicMemory/Ch12_shared_ptr_00.cpp &

Other examples

# Show the changes since version v2.6.12 that changed any file 
# in the include/scsi or drivers/scsi subdirectories.
gitk v2.6.12.. include/scsi drivers/scsi

# Show the changes during the last two weeks to the file gitk. 
# The "--" is necessary to avoid confusion with the branch named gitk.
gitk --since="2 weeks ago" -- gitk

# Show at most 100 changes made to the file Makefile. 
# Instead of only looking for changes in the current branch look in all branches.
gitk --max-count=100 --all -- Makefile

References

Git - gitk Documentation (git-scm.com)

gitk使用 - 知乎 (zhihu.com)



这篇关于gitk的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程