-1

THis is likely the dumbest question of all time on stack overflow... but I have spent close to an hour attempting this, with no luck, and am considering signing up to BitBucket.

1) Dragging and dropping into github, does not upload entire folder, but 5 out of about 30 .py files, and does not include any of the html, css etc... and does not keep any heirarchal structure as it only includes .py files

2) Command line: having git commit my folder, I try to git push origin and am met with this error:


git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.


I have no idea what this means...

  • 2
    I presume you've run `git remote add origin git@github.com:[user]/[repo].git` for attempt 2? That error is an authentication error. You can check whether you have ssh (public key) authentication set up, and read more here https://github.com/settings/keys – jdow Mar 02 '20 at 00:39
  • 2
    it seems like a problem with your public key. Search on google and sort that. You can also clone your directory and then add files in there and then commit and push it – AzyCrw4282 Mar 02 '20 at 00:39
  • https://stackoverflow.com/search?q=%5Bgithub%5D+Permission+denied+publickey – phd Mar 02 '20 at 01:12
  • 1
    I recommend going through the Github tutorials: [Getting started with Git and GitHub](https://help.github.com/en/github/using-git/getting-started-with-git-and-github) – Gino Mempin Mar 02 '20 at 04:35

2 Answers2

0

Did you use 'git init' to initialize the repo? What do you get from git remote - v?

edit

This atlassian doc migth help: https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html

Mario Perez
  • 2,777
  • 1
  • 12
  • 21
0

Have you created a repo on github? You will need to:

  • Add changed files
  • Commit your changes
  • Push to the remote repo

https://help.github.com/en/github/getting-started-with-github