How can I see the history of a particular branch?
I have been creating and merging branches. However, on one particular branch say for example new_feature
. I want to know the history of what has been merged into this branch, and what branch this was created from?
The reason is I have this new_feature
branch, and I want to know what other branches was merged into it, and what branch the new_feature
was made from?
I an not really interested in using any GUI tools, maybe some on the command line. I'm using Git version 1.7.5.4 and Ubuntu 11.10.
On GitHub.com, you can access your project history by selecting the commit button from the code tab on your project. Locally, you can use git log . The git log command enables you to display a list of all of the commits on your current branch. By default, the git log command presents a lot of information all at once.
Commit history in Abstract is a log of commits that allows you to view the changes that have happened on every commit that has ever been made in a given branch, including the main branch.
Git file History provides information about the commit history associated with a file. To use it: Go to your project's Repository > Files. In the upper right corner, select History.
git log --oneline --graph --all
may give you what you want, without the need for third-party tools.
--oneline
makes the commits display on one line only, instead of the longer default format.--graph
shows branch/merge history with ASCII characters.--all
shows all branches in the history, not just the current one.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With