2
How to view the list of all the changed files in one branch without having to inform the commit X
until commit Y
.
I was using the following command below to list the commit’s and get the Hash of commit’s:
git log origin/master..HEAD
The return is something like
commit 234567893fcc38567c634e810aa904c7497d7fdc (HEAD -> feature/task/123, origin/feature/task/123)
Author: Nome <[email protected]>
Date: Wed Aug 19 12:37:46 2020 -0300
Alterada a função x
commit 022e45f07f259b4e8f49679e6a0531c404179cb9
Author: Nome <[email protected]>
Date: Wed Aug 19 12:35:47 2020 -0300
Alterada a variável y
commit 75094ffa564f1b4a3d19ffaebf2afc358585fc81
Author: Nome <[email protected]>
Date: Wed Aug 19 12:25:58 2020 -0300
Adicionado regra
commit 12345678298af92e713b90b9335bcb813eda85fd
Author: Nome <[email protected]>
Date: Wed Aug 19 12:21:47 2020 -0300
Correção de bug
And the command below to list the files of commit A
up to the commit C
taking the first 8 commit hash characters.
git show --pretty="format:" --name-only 12345678..23456789 | sort | unique
The return is the list below:
arquivo1.js
arquivo2.css
arquivo3.html
My question is how do I return in a simpler way all the changed files on branch without having to inform the Hash of commit initial and final?
I also took a look at the documentation: Commit Hystory