I would like to obtain the last 10 commits using git log specifying the path of my repository. I used the option -path but I have "is outside repository" error
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
The comand is running for example in the folder /home