git log master..branch --oneline | tail -1
Where “branch” is your specific branch name. The dot-dot gives you all of the commits that the branch has that master doesn’t have. tail -1
returns the last line from the previous output.
More Related Contents:
- How to add a changed file to an older (not last) commit in Git
- Changing the Git remote ‘push to’ default
- Transfer git repositories from GitLab to GitHub – can we, how to and pitfalls (if any)?
- Create empty branch on GitHub
- Restore file from old commit in git
- Git commit date
- git command to show all (lightweight) tags creation dates
- Checkout Jenkins Pipeline Git SCM with credentials?
- Highlight changed lines and changed bytes in each changed line
- How to git-pull a given patch set from Gerrit?
- Pushing a large github repo fails with “unable to push to unqualified destination: master”
- Setting up sublimetext 3 as git commit text editor
- git shallow clone to specific tag
- Git cannot lock ref ‘HEAD’: unable to resolve reference HEAD
- git clean is not removing a submodule added to a branch when switching branches
- Git merge squash repeatedly
- Duplicate submodules with Git
- Git clone repository error: RPC failed; result=56, HTTP code = 200
- Is there anyway to undo git push -f?
- How to derive application build version string with Git’s `describe` command?
- Git add only all new files, not modified files [duplicate]
- Highly coupled git submodules
- How to improve git log performance?
- npm install package from github repo subfolder
- Git – Ignoring a specific modification to a config file
- Git hangs while writing objects
- warning: remote HEAD refers to nonexistent ref, unable to checkout
- Remove a directory permanently from git
- Commit a file to a Different Branch Without Checkout
- How to reparent in Git