I have added remote repo link with this command -
git remote add origin https://github.com/ni8mr/Local-Weather-App/tree/gh-pages
Than i have checked the remote repo version, it shows that origin is the link i have added.
Live link is here - https://github.com/ni8mr/Local-Weather-App/tree/gh-pages
Though the link is running or the repo exists, i kept getting the following error -
fatal: repository 'https://github.com/ni8mr/Local-Weather-App/tree/gh-pages.git/' not found
How can i solve this issue ? I have checked previous solutions, but can't find the perfect solution.
https://github.com/ni8mr/Local-Weather-App/tree/gh-pages
is not a git-repository, it is just the webview of one of your branches. The repository is at
https://github.com/ni8mr/Local-Weather-App.git
Instead of just taking the link out of the browsers address bar, you should always use the URL in Clone or download: