简体   繁体   中英

Git fatal error, repo not found after trying to push

So I was added to a private repo the other day. Cloned the repo, added 2 files, commited, went to push origin master typed in my username and pswd for my github and I get this:

fatal: repository 'https://github.com/.../repo.git/' not found

removed the repo name and such but my question is why is there a slash at the end? Cloned the repo using the repo url on the github page. New to github so not sure if I did something wrong or something else is going on

The trailing slash should not matter, but just in case, you can type:

git remote set-url origin https://github.com/.../repo.git

For your push issue, check if you have 2FA activated , in which case the password should be a PAT (Personal Access Token)

The alternative is to test the SSH URL git@github.com:<org>/<repo>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM