I have created a git repository of a linux directory and pushed all files into it. I have recently moved a new file into that linux directory and now want to push this new file into its git repository. I am trying to do so by typing
git push origin master
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
If your file is already in the git repo you have created, adding and committing are enough: no need to push.
myrepo <== "I have created a git repository of a linux directory" .git (the .git folder is the git repo referential) myNewfile <== "I have recently moved a new file into that linux directory"
Ie. there is no remote 'origin' to push to for a local git repo.
The chapter "Git Basics - Recording Changes to the Repository" is the good place to start.
git add myNewFile git commit -m "Add a new file"