title: how to push a single java file to a remote repository
body: <p>I am new in git and want to push some java files to remote github repository. The files are NOT a project, just some algorithm problems that I want to share on github.</p>
  
  <p>When I tried <code>git push</code> the alert <code>fatal: not a git repository: .git</code></p>
  
  <p>Is there any quick way to push some/single file to repo using git bash? thanks</p>