我怎么知道分支机构的最新变化是什么? [英] How can I know what was the latest changes made to a branch?

查看:92
本文介绍了我怎么知道分支机构的最新变化是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git 1.7.4.4版本



我正在开发团队开发一个新项目。

所以我刚刚克隆了这个项目。该项目有5个分支机构。

我需要知道哪些分支是最近做出的修改。所以我可以开始在那个分支上工作,因为那样会有最新的变化。



我看了一下日志。但是,这并没有告诉我那些提交的分支。



非常感谢任何建议,

>解决方案

   -  decorate [= short | full | no] 




输出显示的任何提交的ref名称。

如果指定 short ,则ref名称前缀 refs / heads / refs / tags / refs / remotes / 将不会被打印。

如果指定了完整,将会打印完整的参考名称(包括前缀)。 >
默认选项是 short



git version 1.7.4.4

I am working on a new project from my development team.

So I have just cloned the project. The project has 5 branches.

I need to know what branch was the latest changes made to. So I can start working on that branch, as that would have the latest changes.

I have looked at the log. However, but that doesn't tell me that branches those commits where made to.

Many thanks for any suggestions,

解决方案

A git log --decorate would add tags and branches to each line.

--decorate[=short|full|no]

Print out the ref names of any commits that are shown.
If short is specified, the ref name prefixes refs/heads/, refs/tags/ and refs/remotes/ will not be printed.
If full is specified, the full ref name (including prefix) will be printed.
The default option is short.

这篇关于我怎么知道分支机构的最新变化是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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