In a Git repository, I need to change the path of the "master" branch to a subfolder instead of the root folder (default).
Example:
/ -> contains some config files, could be the "sources" branch
/master/ -> contains the files of the "master" branch
Is this possible? How can I do it?
More precisions:
Usually I use Github pages feature, so I use the "worktree" feature to set the "gh-pages" branch in a subfolder. With Hugo, this is in "/public". See Hugo's documentation for details:
https://gohugo.io/tutorials/github-pages-blog/
Git's worktree feature:
https://git-scm.com/docs/git-worktree
However, on one of the server, generated files must be in /, in "master". So if I still want to have Hugo source files in the same repositories, I need to have them in an other folder and/or branch.