2
I would like to push a local repository to my Github. I did the standard procedure for this:
git clone <chave ssh>
Until then everything wonderful, he created a copy of the Gihub repository locally. Inside this repository is a folder with files that I also want to send to the corresponding repository on Github. I did add
and commit
of the folder and then made a push
to the repository on Github, but apparently it only adds the folder and not its files. I navigated to the folder and did the same previous procedure and got the following output:
$ git push origin master
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Any suggestions on how to do the push
of those files?
When you type
git status
the files of such directory in green? If they do not appear, you can add them by typinggit add diretório/nome_do_arquivo
?– Piovezan
In this directory, there is the . git folder? So inside there is a file called
config
. Look in this file and see if you have a remote repository calledorigin
and if you have a branchmaster
. Something else, I always add from the repository root folder and use theadd --all
. Something else, uploaded the key to github? Take a look at https://github.com/settings/ssh– Wakim
Make sure you clone with your github credentials. It is possible that you have made the clone with the address for anonymous user and do not get write permissions there. Also remember to check if your public key is registered in your github settings.
– Luiz Cavalcanti
As I see the colleagues above commenting, I deduce that you are initiating versioning using git with github. recommend https://try.github.io/ to practice and improve knowledge about git.
– Tiago Tiede