获取在git分支中修改的所有文件 [英] Get all files that have been modified in git branch

查看:497
本文介绍了获取在git分支中修改的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有方法可以查看分支中有哪些文件发生了变化? 解决方案

@Marco Ponti,并避免签出:

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

不要理解$()构造,而是使用back-ticks。


Is there a way to see what files have changed in a branch?

解决方案

An alternative to the answer by @Marco Ponti, and avoiding the checkout:

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

If your particular shell doesn't understand the $() construct, use back-ticks instead.

这篇关于获取在git分支中修改的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆