Last active
June 3, 2020 08:17
-
-
Save dxc04/1e9cfcf11cefde1a3ffaca44ebdf674f to your computer and use it in GitHub Desktop.
git: checks if branch is updated or behind from a remote branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rev-list --left-only origin/master...feature_branch | |
# You can add/use flag | |
# --right-only is for "ahead" information | |
# --left-only is for "behind" information | |
# --count to count the number of commits behind or ahead |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment