Find commits that modify file names matching a pattern in a GIT repository

后端 未结 7 1913
礼貌的吻别
礼貌的吻别 2021-02-03 18:36

I\'d like to find commits in my code base that add video files to throw them out. Is there a way to look for these files in git ?

For example let\'s say all videos have

7条回答
  •  眼角桃花
    2021-02-03 19:36

    This can work in gitk as well, using the View / New View / Enter files and directories to include, one per line box.

    But note that you need a wildcard that covers the path section of the filename, or else nothing will show.

    eg if you have had a file called backup-script.sh, with a varied life (!) appearing in different places in the file tree and you want to see all versions, then you must specify:

    */backup-script.sh
    

提交回复
热议问题