Вопрос по git, branch – Получить все файлы, которые были изменены в ветке git

141

Есть ли способ увидеть, какие файлы изменились в ветке?

Error: User Rate Limit Exceeded Raif
Error: User Rate Limit Exceeded Scott Wright
Error: User Rate Limit ExceededHow can I find out which files have been modified in a branch? Matt Ball

Ваш Ответ

13   ответов
11

git whatchangedError: User Rate Limit Exceeded

Error: User Rate Limit Exceededgit docs: New users are encouraged to use git-log instead. The whatchanged command is essentially the same as git-log but defaults to show the raw format diff output and to skip merges.
Error: User Rate Limit Exceeded
4

git show --stat origin/branch_name

Error: User Rate Limit Exceeded
17

git diff --name-only $(git merge-base master HEAD)
Error: User Rate Limit Exceededgit diff master... --name-onlyError: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceededgit diff master.. --name-onlyError: User Rate Limit Exceededthis answer
0

Error: User Rate Limit Exceededstackoverflow.com/a/41486181/11912
119

git diff --name-only <notMainDev> $(git merge-base <notMainDev> <mainDev>)

Error: User Rate Limit Exceeded<notMainDev>Error: User Rate Limit Exceeded<MY_CURRENT_CO_BRANCH>Error: User Rate Limit Exceeded<notMainDev>Error: User Rate Limit Exceededgit merge-baseError: User Rate Limit Exceeded
хммм, ну, я думаю, я имею в виду, что я хотел бы сделать git diff - name-only & lt; notMainDev & gt; $ (git merge-base & lt; notMainDev & gt; & lt; MY_CURRENT_CO_BRANCH & gt;) где MY_CURRENT_CO_BRANCH, конечно, будет моей текущей проверенной веткой Raif
git diff --name-only <some-other-branch>Error: User Rate Limit Exceeded<some-other-branch>Error: User Rate Limit ExceededanyError: User Rate Limit Exceeded<some-other-branch>Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded Raif
Error: User Rate Limit Exceededgit branch | grep '\*' | awk '{print $2}'Error: User Rate Limit Exceededgit branch | grep '\*' | awk '{print $2}') Raif
1

git diff --name-only <notMainDev> $(git merge-base <notMainDev> <mainDev>)wrong--name-status

git diff --name-only $(git merge-base <notMainDev> <mainDev>)
33

git whatchanged --name-only --pretty="" origin..HEAD

Отgit docs: New users are encouraged to use git-log instead. The whatchanged command is essentially the same as git-log but defaults to show the raw format diff output and to skip merges.
Error: User Rate Limit Exceeded
Спасибо, это интересно, более многословно. Он обеспечивает вывод каждого коммита в обратном порядке.git-whatchanged - Show logs with difference each commit introduces git-scm.com/docs/git-whatchanged
0

grepdiff --git

git diff branchA branchB | grep 'diff --git'
// OUTPUTS ALL FILES WITH CHANGES, SIMPLE HA :)
diff --git a/package-lock.json b/package-lock.json
0

@ECHO OFF
C:                               :: <== OR USE A DIFFERENT DRIVE
CD \path\to\where\git\files\are  :: <== CHANGE TO THE ACTUAL PATH
SET /p b="Enter full path of an ALREADY MERGED branch to compare with origin/master: "
bash --login -i -c "git diff --name-only %b% $(git merge-base %b1% origin/drop2/master)"
PAUSE

bash --login -i -c "git difftool --dir-diff %b% $(git merge-base %b1% origin/drop2/master)"
43

Error: User Rate Limit Exceeded

git diff master...branch

Error: User Rate Limit Exceededbranch

Error: User Rate Limit Exceeded

git diff master...

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

git diff $(git merge-base master branch) branch

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceededgit diff master.,..
107

git checkout <notMainDev>
git diff --name-only <mainDev>

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded<mainDev>Error: User Rate Limit Exceededgit diff --name-only <sha-of-branch-point>Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded<sha-of-branch-point>Error: User Rate Limit Exceededgit rev-parse <branch-name>
Error: User Rate Limit Exceeded Raif
0

FOR /F "usebackq" %x IN (`"git branch | grep '*' | cut -f2 -d' '"`) DO FOR /F "usebackq" %y IN (`"git merge-base %x master"`) DO git diff --name-only %x %y
8

Error: User Rate Limit Exceeded

git changed

Error: User Rate Limit Exceeded~/.gitconfigError: User Rate Limit Exceeded

cbranch = !"git branch | grep '*' | cut -f2 -d' '"
changed = !"git diff --name-only $(git cbranch) $(git merge-base $(git cbranch) master)"

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded$(). Error: User Rate Limit Exceeded.

Похожие вопросы