freeCodeCamp / freeCodeCampOS

Test repo for external freeCodeCamp courses

Home Page:https://opensource.freecodecamp.org/freeCodeCampOS/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[seed] ability to retain git-ignored files

ShaunSHamilton opened this issue · comments

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

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

@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.

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.

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?