Publishing app locally


When publishing an App locally, is their a method to ignore certain files and folders? I know a .gitignore works from when using git, but I would like the same ability when pushing from my own machine instead of deleting the files/folders.


@charlie.mottmac Unfortunately you can’t publish an app while ignoring specific files and folders. As a workaround, the following might suit you:

  1. You can temporarily set your directory to the state that is the last commit in git using:
    git stash --include-untracked
    This will stash (remove them for now, while giving you the ability to bring them back later) all files that are not checked in to git, and reset all changes
  2. Publish your app
  3. Apply the stashed changes to reset your working directory to before you ran the stash command:
    git stash apply