I created a directory, hello_git
. In this directory I created a file, hello_git.py
, which prints out a "Hello git!" message.
Then I made hello_git
my current directory in the terminal and entered the following commands one after another in that directory:
git init
git add hello_git.py
git commit -m 'first commit'
git remote add origin [email protected]:githubaccountname/hello_git.git
When I enter the command git push origin master
I get asked:
Enter passphrase for key '/home/myusername/.ssh/id_rsa':
When I enter my passphrase (which authenticates successfully using ssh -T [email protected]
) I get this:
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
I don't know if this helps, but:
git remote -v
returns:
origin [email protected]:githubaccountname/hello_git.git (fetch)
origin [email protected]:githubaccountname/hello_git.git (push)
I have looked into answers of similar posts, but nothing seems to work:
hello_gitty
would be a much better name for a sandbox/testing repo! :p – ThiefMaster