I have two repositories. In the first, I have application code and a .gitignore
containing the pattern: dist
. I need to push that dist
folder to the master branch of the second repository.
Currently, I remove dist
from the .gitignore
, delete the master branch of the second repository and git subtree push to a new master branch of second repository.
Can I do this any other way?