Forum Discussion

jp91's avatar
jp91
Bronze I
21 days ago

Git Security: Git History

Hi all,

I’ve been struggling for a while with the last question on this lab, question 7. Where you need to purge access_keys.json from the commit history and force push changes at the end.

I’ve tried so many combinations that I’ve lost count.

The most recent, which I don’t understand why it’s not working is:

git log --diff-filter=A -- *.json To find the commits.

git rebase -i <commit_hash> Then changing to edit in the text editor.

git push origin --force To force push my changes.

This is just one of many ways I’ve tried. Any help would be appreciated, it’s driving me a little mad haha.

Thanks,

JP

1 Reply

  • I’m just starting out, so I’m working my way through fundamentals, this really has me stumped though.