提交指定文件夹到 git 分支

git subtree push --prefix=dist origin gh-pages
 
提交 dist 目录到 gh-pages 分支
 
 

Make sure your:

  1. --prefix folder is known to git. If needed add and commit it first.

  2. .gitignore file doesn't rule out your desired directory.

posted @ 2021-03-08 10:45  winyh  阅读(592)  评论(0编辑  收藏  举报