git tip: listing or editing the commits on a branch
Sometimes I need to list all the commits on a branch. I found the following command does the trick, even after I have merged from master into the branch one or more times:
git rev-list my-branch ^master
This lists all the commits reachable from my-branch but not reachable from master.
You can also change the committer or author info of commits on a branch by specifying my-branch ^master as the
No comments:
Post a Comment