Can I merge/sync a sub-folder from one branch to the root of another in git?
问题 I want to have a /doc folder in master and easily merge/sync it to the root of a gh-pages branch. What is the easiest way to do this? 回答1: One nice trick would be to declare the branch gh-branch as a submodule in your master branch (also more detailed in "How to add a git repo as a submodule of itself?"). That way, when you are in your master branch, you see a folder gh-branch which represents the gh-branch content. You could then: version doc only in the gh-branch have a symlink doc in your