Remote: Repository not found. fatal: repository https://github... not found #26896
-
Hi,
I get the error: BTW, PAT has full repo access rights and can upload code into existing repo just fine. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
The repository must exist on Github before you can push to it. If you’d like to automate that you should be able to do that using the API. As far as I know there are tools that wrap that API in a command line or library for you, but I’m not familiar with them. |
Beta Was this translation helpful? Give feedback.
-
As @airtower-luna mentioned, before you can push to the remote repository, this remote repository must have been created in the specified organization account or user account, and generally this remote repository is empty that does not contains any files. If you want to use a shell script to automatically create the empty remote repository and push some files to it, instead of manually creating the repository. You can run the “Create an organization repository” or “Create a repository for the authenticated user” API at first in the script. |
Beta Was this translation helpful? Give feedback.
-
Hi brightran, |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. I am trying to get it to work via the API. Here is what I am trying:
Results in: No repo is created. Other stuff tried, yielding same or other errors:
|
Beta Was this translation helpful? Give feedback.
-
Found solution
|
Beta Was this translation helpful? Give feedback.
Found solution