I have accidentally committed one binary file in one of my branches which take around 8Mb, Is there a way to find out
- Which branch is it?
- Which commit is it?
So that I can delete the corresponding branch from Github
I have accidentally committed one binary file in one of my branches which take around 8Mb, Is there a way to find out
So that I can delete the corresponding branch from Github
git log --oneline -- path/to/file
will output a list of all commits modifying this path.
If you just introduced the file, you'll have only one commit, but even if you made a few commits since, you could then use the hash(es) found there to list branches involved :
git branch -a --contains <commitHash>