Is that code all related to the app?
If yes, then you can clone the Anvil app repository to your computer, add a folder with your stuff, commit and push. At that point the depository in the Anvil server instead of a repository in github has your stuff.
See here for more details about this approach.