I integrated a custom domain from namecheap.com but now when I am trying to do default github pages hosting this domain name is coming (anuragportfolio.me) in between the full domain name. Previously it was coming as https://anurag30112003.github.io/Portfolio.github.io/. How to remove it or restore to default?
You need remove anuragportfolio/anuragportfolio.github.io repo that include the cname.