简体   繁体   中英

How to include folder name in Github Repository URL

文件结构

courseraasignment2 is the name of my repository and module2_solution is the name of the folder I uploaded. The URL generated by website is:

..github.io/courseraassignment2/

whereas I want the URL to be

...github.io/courseraassignment2/module2_solution/ .

How can I achieve it?

...github.io/courseraassignment2/tree/gh-pages/module2_solution/index.html will you achieve, if you add a folder (module2_solution) and create inside at least one file (index.html) and push this. tree/gh-pages define, that you show the gh-pages branch's current version of the index.html file (just an example...)

As far as I know, you cannot remove tree/master from the url as it could also have other branches (eg tree/develop ). Is unfortunately also the case, if you only have one branch (master), tree/branch is needed to find the branch of the respective file (because the files can have different content per branch)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM