Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alias to show commits in the current branch yet to be merged to master #41

Closed
wants to merge 1 commit into from

Conversation

MarcosEllys
Copy link

@MarcosEllys MarcosEllys commented Aug 27, 2018

Command

git db (The name means Diff Branch).

Description

This alias is very useful for showing all commits that have not yet been merged with the master.

How to use

git db (like as git cherry -v master)

Result

  • 48e520f0f328c154dccc2f7def0ea4a81377ac4e message here
  • 48e520f0f328c154dccc2f7def0ea4a81377ac4e message here
  • 48e520f0f328c154dccc2f7def0ea4a81377ac4e message here

@phdru
Copy link
Contributor

phdru commented Aug 28, 2018

Why db? Is it git DataBase or Diff with Base or what?

@MarcosEllys
Copy link
Author

Following all commands that have diff as a purpose (like dc, ds, or dw), this command shows all commits in the current branch yet to be merged to the master.

The name means Diff Branch.

Maybe there are a better name, if you want to propose another name I would be happy with any proposal.

@MarcosEllys
Copy link
Author

I use this command all the time because my team works with git flow (and there's a branch for each feature), so when I want to show all commits in my branch I use that.

@MarcosEllys MarcosEllys closed this Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants