Ask Your Question
1

While performing a git merge, what method can I utilize to identify the commit(s) that are being merged?

asked 2023-06-11 09:27:13 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-11 09:34:02 +0000

djk gravatar image

You can use the "git log" command to view the commit history and identify the commits that are being merged. Specifically, you can use "git log --oneline --decorate" to view a concise history with the commit message and any branch or tag labels that point to each commit. When you are performing the merge, Git will also display a message indicating which branch is being merged into which branch.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-11 09:27:13 +0000

Seen: 13 times

Last updated: Jun 11 '23