With a context switch to the browser: github.com/<username>/<projectname>/commit/<hash>
(as an example take this: github.com/expressjs/express/commi...)
If you go to the commit within the express js repository, you will notice that it says master (#3778) 4.17.1 4.17.0 in the header of that commit. #3778 is the Pull Request this commit found its way onto the master branch. :-)
If you want to stay in your local environment it gets a little trickier but is still doable!
I do not exactly know where I got this from but the disclaimer is, that I also found this somewhere, some time ago, so note that it's not my own.
This are two of the aliases I use (~/.gitconfig):
git find-merge <commit-hash-you-want-to-track> will give you the hash of a merge commit, the commit you are searching for was part of, and git show-merge <commit-hash> will directly show all information about that merge commit.
Is this something that could help you?
If you're using GitHub, it's pretty easy to do.
With a context switch to the browser:
github.com/<username>/<projectname>/commit/<hash>
(as an example take this: github.com/expressjs/express/commi...)
If you go to the commit within the express js repository, you will notice that it says
master (#3778) 4.17.1 4.17.0
in the header of that commit. #3778 is the Pull Request this commit found its way onto the master branch. :-)If you want to stay in your local environment it gets a little trickier but is still doable!
I do not exactly know where I got this from but the disclaimer is, that I also found this somewhere, some time ago, so note that it's not my own.
This are two of the aliases I use (
~/.gitconfig
):git find-merge <commit-hash-you-want-to-track>
will give you the hash of a merge commit, the commit you are searching for was part of, andgit show-merge <commit-hash>
will directly show all information about that merge commit.Is this something that could help you?
That's great, thanks for those tips, I shall try both next time
Great!
Just msg if there's something not working. :-)