Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[seed] ability to retain git-ignored files #238

Open
ShaunSHamilton opened this issue Apr 21, 2023 · 4 comments
Open

[seed] ability to retain git-ignored files #238

ShaunSHamilton opened this issue Apr 21, 2023 · 4 comments

Comments

@ShaunSHamilton
Copy link
Member

Clicking "Reset Step" should not delete specific files (e.g. keypairs, etc.)

@gikf
Copy link
Member

gikf commented Apr 29, 2023

Would you know which course/step would be convenient for observing this and to be used for testing?

@ShaunSHamilton
Copy link
Member Author

@gikf The main one would be the NEAR curriculum. The reason being in the 4th project (3rd practice project) requires Campers to create wg.<name>.testnet files which point to wallets on the testnet.

These credentials are needed for future projects. Campers are told to save these somewhere safe. However, it would still be ideal if using the Reset button did not remove them.

@gikf
Copy link
Member

gikf commented Apr 29, 2023

git clean used to reset step is actually leaving ignored files alone, but it removes untracked files (Unless they are also in untracked directory). Therefore files that should not be removed during the reset, can be added to ignored.

Question is which way would be preferred for that:

  • Via .gitignore file added to the individual project folder.
  • Via --exclude option with git clean, which accepts the same pattern as can be used in .gitignore. These could be provided via the project markdown.

@ShaunSHamilton
Copy link
Member Author

Ah, thank you for clarifying that.

In that case, we should go with the easy, and quickly modifiable option of adding what is needed to the .gitignore file for individual projects, and this behaviour should be documented.

  • Add .testnet files to .gitignore for the NEAR curriculum
  • Document the processes of the RESET functionality, and how to avoid resetting specific files

@gikf Are you interested in helping with any of the above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants