Github- repository is on remote but not found when pushing -
i'm trying push github , i'm getting error;
robbies-macbook-pro:assn-6-huffman-mac user$ git push -u origin master fatal: repository 'https://github.com/bitmechanic/stanford-cs106b/huffman.git/' not found
then when check this;
robbies-macbook-pro:assn-6-huffman-mac user$ git remote add origin https://github.com/bitmechanic/stanford-cs106b/huffman fatal: remote origin exists. robbies-macbook-pro:assn-6-huffman-mac user$ git remote -v origin https://github.com/bitmechanic/stanford-cs106b/huffman.git (fetch) origin https://github.com/bitmechanic/stanford-cs106b/huffman.git (push)
anyone know i'm doing wrong?
the proper url use (for cloning , pushing through origin) is
https://github.com/bitmechanic/stanford-cs106b.git
not:
https://github.com/bitmechanic/stanford-cs106b/huffman.git
stanford-cs106b
repo, listed in bitmechanic's repo page of d. stanford-cs106b/huffman
not.
to fix this, see git remote
commands:
git remote rm origin git remote add origin https://github.com/bitmechanic/stanford-cs106b.git
or, simpler:
git remote set-url origin https://github.com/bitmechanic/stanford-cs106b.git
Comments
Post a Comment