title: How to push code to root of git repository (GitHub)
body: <p>I am very new to git and have been facing the problem below for 4-5 days now.</p>
  
  <p>I have a project that I want to share on GitHub and I created a repo (<a href="https://github.com/jitix/cfs/tree/master/cfs" rel="nofollow">https://github.com/jitix/cfs/tree/master/cfs</a>) for the same. <br><br>
  Here is what I did:</p>
  
  <ol>
  <li>Checked out the code from svn using Eclipse (Juno).<br></li>
  <li>Removed svn related files and 'cleaned' the folder by doing Team > Disconnect.<br></li>
  <li>Created a local git repository (using both via eclipse and cli on different occasions).<br></li>
  <li>Added appropriate .gitignore file. <br></li>
  <li>Committed the code into the local repo (somehow eclipse moves the folder there, but not an issue). Eclipse made me choose the $repo/cfs as the folder where the code is committed. I could not commit it to $repo.</li>
  </ol>
  
  <p>Now I want to push it into GitHub. Tried out the following:<br><br>
  Method 1 (eclipse):</p>
  
  <ol>
  <li>Team > Remote > Push <br></li>
  <li>Use refs/heads/master as both source ref and dest ref and commit.</li>
  </ol>
  
  <p>Method 2 (cli from the $repo/cfs directory):</p>
  
  <ol>
  <li>git remote add origin jitix@<a href="https://github.com/jitix/cfs.git" rel="nofollow">https://github.com/jitix/cfs.git</a> <br></li>
  <li>git push -u origin master<br></li>
  </ol>
  
  <p><strong>Issue:</strong>
  In both cases, I am getting the cfs directory under the GitHub repo, not at the root (as most projects have). Also, each folder has a .. link to the parent folder in it (something that I have never seen on GitHub, and something that does not happen if I push using svn).</p>
  
  <p>I checked out my code from svn, created a local repo and committed the code into</p>