Check if specific file in git repository has changed

前端 未结 4 946
面向向阳花
面向向阳花 2021-02-05 03:59

I am novice in dealing with git, but I have a repository that contains a file named \'test\'. I want to check if that specific file has changed. Is there anyway to do that?

4条回答
  •  忘了有多久
    2021-02-05 04:33

    Using

    git diff test
    

    will show the differences between the work directory test and the repository version. Using diff will show the actual differences; if you are not interested in those use

    git diff --name-only test
    

提交回复
热议问题