I’m sorry my last answer was confusing to you!
Adding items to .gitignore will help you save project disk space, but it will not affect the issue that you are seeing.
The issue is that you have created code that tells the app how to work as a bot within Discord, but you haven’t added any code that would be displayed to anyone going to the app itself.
If that isn’t a problem for you, you can leave it. If you want something to show, so the preview doesn’t load infinitely, you’ll need to add some front end code. If you are unsure how to do this, you can remix a copy of the discord starter bot and then copy over your commands code into that project.