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

New entry: I committed some changes to some branch, but I forgot where #130

Open
krlmlr opened this issue Feb 10, 2022 · 1 comment
Open

Comments

@krlmlr
Copy link

krlmlr commented Feb 10, 2022

Variant: A coworker pushed some changes to some branch but didn't tell me where.

Possible solution:

git log --all --graph --decorate

Do you think this can be a useful addition to the list?

@MattJenko
Copy link

You can also use --grep to search for the known message, and then git branch -r --contains <sha> to find the branch it was committed to. This will show more than one branch if it has been merged or another branch has been based on the first one.

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

No branches or pull requests

2 participants