Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git: 'Repository not found error' for private repository on Github

Tags:

git

github

I am facing the following problems while trying to push a branch in origin. So, what I have done is, created a new branch and add a commit on it. Then tried to push. It shows,

fatal: The current branch Hotfix/Update_ducusign_semail_subject_line has no upstream branch. To push the current branch and set the remote as upstream, use

git push --set-upstream origin Hotfix/Update_ducusign_semail_subject_line

Then, I run the following command

git push --set-upstream origin Hotfix/Update_ducusign_semail_subject_line

But it gives the following error,

remote: Repository not found.

fatal: repository 'https://github.com/nalam-nmef/NextGenTPR.git/' not found

enter image description here

What is the problem here?

like image 283
Noor A Shuvo Avatar asked Jul 02 '26 10:07

Noor A Shuvo


1 Answers

Github does not support connections via HTTPS to private repositories, if you do not supply the correct credentials.

You have two options now:

  1. Switch to SSH and make sure your SSH key is available in your Github settings:
    [email protected]:nalam-nmef/NextGenTPR.git
  2. Supply credentials for the HTTPS variant by using personal access tokens:
    https://nalam-nmef:[your-private-access-token-here]@github.com/nalam-nmef/NextGenTPR.git/
like image 100
Kevin Woblick Avatar answered Jul 04 '26 02:07

Kevin Woblick