0

I got a repository git clone and trying to commit the code. But getting remote: Repository not found error

I followed following steps.

Steps

#git clone https://<YOUR_USER_NAME_HERE>@github.com/<YOUR_USER_NAME_HERE>/<REPO>.git    
#git remote rm origin
#git remote add origin  https://<user>:<pwd>@<repo url>
# git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

# git push --set-upstream origin master
remote: Repository not found

.

Can somebody point me right steps? I have full permission(read/write) for this repository. Problem occured, because one developer locally created initial repository and committed. So, when I clone that repo and do development, i face issue when pushing the code.

Ratha
  • 9,434
  • 17
  • 85
  • 163
  • 1
    Does this answer your question? [Support for password authentication was removed. Please use a personal access token instead](https://stackoverflow.com/questions/68775869/support-for-password-authentication-was-removed-please-use-a-personal-access-to) – Renat Dec 14 '21 at 01:58
  • @Renat Not really.. I tried token instead of my pw too. But same errors i face..I'm actually confused with the steps now..I look for clear steps..I'm trying this for hours now but couldn't find proper way to commit the code – Ratha Dec 14 '21 at 02:00
  • 1
    What scopes does your token have? Also, putting the token in the URL is insecure, so you should [use a credential helper](https://git-scm.com/docs/gitfaq#http-credentials). – bk2204 Dec 14 '21 at 02:15
  • what happens when you do `git clone https://:@`? – Sam Varshavchik Dec 14 '21 at 02:37
  • could you show us `.git/config` please. – Faesal Dec 14 '21 at 02:48
  • @SamVarshavchik with password it gives Cloning into 'delwp-api-mule-utilities-api-v1'... fatal: unable to access'XXXXXX': URL using bad/illegal format or missing URL . WIthout password only with username it is cloning fine – Ratha Dec 14 '21 at 03:04
  • @Faesal I dont see .git file inside my repo..Where it resides? – Ratha Dec 14 '21 at 03:07
  • it's hidden file, you can access it with terminal – Faesal Dec 14 '21 at 03:21
  • @Faesal It says access is denied, when try to read content as # type .git – Ratha Dec 14 '21 at 03:30
  • You'll need to investigate on the web server side what's broken with its configuration. This is not a git issue. – Sam Varshavchik Dec 14 '21 at 12:14

0 Answers0