title: In git, obtain commits using git log with path
body: <p>I would like to obtain the last 10 commits using git log specifying the path of my repository. I used the option <code>-path</code> but I have &quot;is outside repository&quot; error</p>
  <pre><code> git log --no-merges -10 -p /home/my_folder/git/repo
  
   fatal: /home/my_folder/git/repo: '/home/my_folder/git/repo' is outside repository
  </code></pre>
  <p>The comand is running for example in the folder /home</p>