I'm having the following error in github when I'm going to push.
Please make sure you have the correct access rights and the repository exists.
I created the repository and as I was already with the project I created, I did:
git remote add [email protected]:andredsn/ArquiteturaSoftware.git
git config --global user.name "andredsn"
git config --global user.email "[email protected]"
git add .
git commit -m "primeiro commit"
git push origin master
On this last line you give the error. You probably are not finding the repository.
As the line:
git remote add [email protected]:andredsn/ArquiteturaSoftware.git >
add the remote via ssh, then I deleted it with:
git remote rm origim master
I typed: gite remote -v and it does not have any repository, so I guess I removed it. But the error appears when I add the remote via https:
git remote add https://github.com/andredsn/ArquiteturaSoftware.git
give the error:
C:\projetos\ArquiteturaSoftware>git remote add https://github.com/andredsn/ArquiteturaSoftware.git
usage: git remote add [<options>] <name> <url>
-f, --fetch fetch the remote branches
--tags import all tags and associated objects when fetching
or do not fetch any tag at all (--no-tags)
-t, --track <branch> branch(es) to track
-m, --master <branch>
master branch
--mirror[=<push|fetch>]
set up remote as a mirror to push to or fetch from
I wanted a command to show if I'm connected to github since we use git config --global user.name
and git config --global user.email
for our id.