feat: added github known host file to example #1893
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Simple update to one of the examples to show how easy it is to update the known hosts file so that tooling inside the IDE does not appear to freeze. With github being common and easy to verify I felt they would make a good example: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints
Without doing this the user would have to go to the git command line run
git pull
which will force git to realise that it does not know the github host and will prompt for adding it. If the user does not do this in the CLI then tooling like VSCode, Cursor, and Lazygit will error or freeze with little feedback. This would happen after every rebuild of the container.