0

There was a file with credentials checked into git/stash accidentally. I've deleted the file in git stash. However, the commit log with the link to the deleted file still remains in the commit history. I tried to delete a particular commit log in git/stash following https://www.clock.co.uk/insight/deleting-a-git-commit but doesn't work. Any ideas what's the best way to resolve my issue? Thanks!!

Vinay Prajapati
  • 7,199
  • 9
  • 45
  • 86
Derek
  • 99
  • 1
  • 5
  • It's not clear to me what you mean by "git stash". Do you mean the `git stash save` command, or do you mean Atlassian Stash which is built on top of Git? – torek Oct 28 '17 at 19:14
  • try running `git gc` and then check again. It should remove the dangling reference. – Vinay Prajapati Dec 12 '17 at 11:05
  • Possible duplicate of [Listing and deleting Git commits that are under no branch (dangling?)](https://stackoverflow.com/questions/3765234/listing-and-deleting-git-commits-that-are-under-no-branch-dangling) – Vinay Prajapati Dec 12 '17 at 11:07

0 Answers0