简体   繁体   English

我怎样才能看到在不同分支中一起推送的提交?

[英]How can I see commit pushed in different branches together?

I want to list down last commits which were made in different branches together.我想列出在不同分支中一起进行的最后一次提交。 ie. IE。 I want to see the branch name, even if I've forgotten in some cases.我想查看分支名称,即使在某些情况下我已经忘记了。

Scenario => Let's take - I was working in 3 different branches in a single day & I wanted to see what last commits I have made in all those 3 branches together ie.场景 =>让我们来看看 - 我在一天内在 3 个不同的分支中工作,我想看看我在所有这 3 个分支中所做的最后一次提交是什么,即。 - Not by mentioning any branch name. - 不提任何分支名称。

I can get all commits pushed in a particular branch with this command -我可以使用此命令将所有提交推送到特定分支中 -

git log mybranchName

Is there any provision which can give me result like -是否有任何规定可以给我这样的结果 -

Branch login => commit: Added form design.分支login => commit: Added form design.

Branch register => commit: Registration module completed.分支register => commit: Registration module completed.

Branch master => commit: Release v1.0.0分支master => commit: Release v1.0.0

Note - Not just 3 branches, It should be a flag to get how many of the last branches I wanted to list down.注意 -不仅仅是 3 个分支,它应该是一个标志,用于获取我想要列出的最后一个分支的数量。 The only purpose is to list down the branches in which I am working on without jotting down it.唯一的目的是列出我正在工作的分支,而不是记下来。

Also happy if any flag can help me to achieve this.如果有任何标志可以帮助我实现这一目标,也很高兴。 🙂 🙂

You might want to give a look at this question.你可能想看看这个问题。

One good command to see all branches at the same time in a nice way is the following:以一种很好的方式同时查看所有分支的一个好命令如下:

git log --graph --oneline --decorate --all

To remember it, see this answer .要记住它,请参阅此答案

如果您使用简单的图形界面,如gitkgitg,您可以传递--all选项,它将列出所有提交的分支:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何查看我推送的所有远程分支 - How can I see all remote branches pushed by me 如何查看某些开发人员推送的分支合并到远程服务器中的master中? - How can I see the branches merged into master in remote server, pushed by certain developer? 如何使用命令行查看最后推送的提交 - How can I use the command line to see which commit was pushed last 如何查看Github上的哪些分支或标签包含特定的提交? - How can I see which branches or tags on Github include a specific commit? 如何在git中看到分支之间的提交差异? - How do I see the commit differences between branches in git? 如何在 Android Studio 4.1 中将不同分支中的两次提交与 Git 进行比较? - How can I compare two commit in different branches with Git in Android Studio 4.1? 如何在具有完全不同的提交历史的分支之间创建拉取请求 - How can I create a pull request between branches with entirely different commit histories 如何“撤消”推送到远程Bonobo Git Server的提交? - How can I “undo” a commit pushed to remote Bonobo Git Server? 如何使用Sourcetree拆分过去未推送的提交? - How can I split a past un-pushed commit with Sourcetree? 如何为上次未按下的提交添加新更改? - How can I add new changes to the last not-pushed commit?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM