我想知道如何使git列出所有已更改的文件
我将首先为我的问题列出一个示例情况.
说我更改了以下文件:
未提交的更改
/site/main.php
/site/main.html
/site/includes/lib.php
Run Code Online (Sandbox Code Playgroud)
提交3
提交消息:"Bug xyz:做了一些改动"
/site/main.php
/site/main.html
/site/main.js
/test/test.php
/test/test.html
Run Code Online (Sandbox Code Playgroud)
提交2
提交消息:"Bug xyz:做了一些更改"
/site/main.php
/site/main.html
/site/includes/include.php
Run Code Online (Sandbox Code Playgroud)
提交1
提交消息:"错误abc:请注意,这是另一个错误"
/site/login.php
Run Code Online (Sandbox Code Playgroud)
说我还在研究bug xyz.现在我需要一个列表,列出目前在网站目录中已经更改的所有php文件.所以我需要以下列表作为输出:
/site/main.php
/site/includes/lib.php
/site/includes/include.php
Run Code Online (Sandbox Code Playgroud)
什么命令可以做到这一点?