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
git log
command from within some repo; otherwise s/he would have gotten fatal: Not a git repository (or any of the parent directories): .git. – Delibes