'Github Pages hosting my repo as a sub domain

I Made a portfolio website for myself and hosted it using my own custom domain (arnabkumar.me) but its automatically hosting it to arnabkumar.me/myportfolio (Note: here "myportfolio is my repository name") i tried tons of things nothing worked can anyone please suggest me what to do Its hosted on Namecheap.com. The repository.



Solution 1:[1]

Domains are configured per user or organization. The myportfolio part is the repository. You cannot configure a single repository as the APEX or subdomain without the repository as the path component.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 John Hanley