title: How to add folders to git repository?
body: <p>I would like to publish some project I created with java ,about MMU.
  The project folder actually contains two separate folders: the first one is for the client, and the second one for the server.</p>
  
  <p>Of course, to achieve that goal , the first step  is to create a new repository in my own GitHub site. So I did.</p>
  
  <p>Then, I was trying tried the following to add the relevant folders in this repository:</p>
  
  <p>1) <strong>Directly through GitHub :</strong></p>
  
  <p>I clicked on my repository in a browser, then I clicked on Upload Files. However, uploading an entire folder so that GitHub would preserve the hierarchy of the files and folders in my folder - is failed , since it can not select folders to be uploaded. </p>
  
  <p>I also was trying to drag and drop the folders, but it always got the following error : <code>" Yowza, that’s a big file. Try again with a file smaller than 25MB."</code> ,even though the files I wish to upload are well under 25MB.</p>
  
  <p>2) <strong>By using git-bash command line:</strong></p>
  
  <p>According to this link <a href="https://github.community/t5/How-to-use-Git-and-GitHub/How-to-upload-an-entire-folder/td-p/8516" rel="nofollow noreferrer">https://github.community/t5/How-to-use-Git-and-GitHub/How-to-upload-an-entire-folder/td-p/8516</a>, typing the following commands should fulfill the goal of adding entire folders into a repository:</p>
  
  <pre><code>git init
  
  git add &lt;folder1&gt; &lt;folder2&gt; &lt;etc.&gt;
  
  git commit -m "Your message about the commit"
  
  git remote add origin https://github.com/yourUsername/yourRepository.git
  
  git push -u origin master
  
  git push origin master
  </code></pre>
  
  <p>but after I type the command : git add   , I get the following error:</p>
  
  <pre><code>bash: syntax error near unexpected token `&lt;'
  </code></pre>
  
  <p>How do you add entire folders into a repository then?</p>
  
  <p>Any help would be appreciated.</p>