When I run this command:
$ git status
Here is the result:
/* red color - I haven't added them yet */
modified: inaccessible/dbh_conn.php
modified: myweb/.idea/workspace.xml
modified: myweb/application/search.php
Now I need to see the changes in search.php
file. How can I see that? I guess I should use $ git diff
command. But apparently it has a limited result and the changes in workspace.xml
are too much, so I cannot see the changes in other files after that.
Anyway, how can I say to git, show me only the changes in a specific file?
I think you're looking for the git diff myweb/application/search.php
command.