If this is your personal repo and you have not published it yet, use it filter-branchto edit the story:
git filter-branch
git rm -r
'
Then add / edit the file .gitignore:
>> .gitignore echo bin
git add .gitignore
git commit -m 'add gitignore files'
Since you have already published your story, itโs best not to rewrite it. Just delete the bin directory and add the .gitignore file
git rm -r bin
git commit -m 'remove and ignore bin folder'
source
share