Git add files from ignored folder as if they were in root
I have an app living in
develop branch and bundled using webpack into
dist/ folder. I also have
gh-pages detached branch.
I want to take files from
dist/ in develop and add them to
gh-pages as if those files were in root. The goal is I want builded app to be uploaded to GitHub pages.
dist/ folder is in
I tried something like
git add -f dist/ :/, however this will add all ignored files.
Therefore the question is how do I add and commit files from ignored
dist/ folder as if those files were in project root?