N
N
Nonik08562016-12-16 23:39:19
git
Nonik0856, 2016-12-16 23:39:19

How to find out which files have been modified during checkout in Git?

Goodnight!
At one fine moment, I noticed that something in the project had broken and for a long time, not noticeable at first glance.
After that, there were already many commits.
With the help of git checkout <commit hash> I found the place where everything is still as it should, but the trace. the commit is already breaking.
Here's how you can find out in which files something changed, which led to a breakdown?
That is, which files have changed between these two commits?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DevMan, 2016-12-16
@Nonik0856

any gui (or github-type hosting, if used) will show the contents (changes) of any commit.
it is possible in the console, but not so convenient / visually.

A
Andrew, 2016-12-16
@R0dger

diff? :)

A
abcd0x00, 2016-12-17
@abcd0x00

At one fine moment, I noticed that something was broken in the project and for a long time

To find when it broke, run
it and it will show the commits for each line of the file.
All changes between commits
All changes between commits in one file
You can also
subtract one from the commit_before (to include it).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question