In GIT, obtain commits using git log with path -
i obtain last 10 commits using git log specifying path of repository. used option -path 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' outside repository
the comand running example in folder /home
git assumes current working directory inside repository want operate on. when running git command outside repository directory hierarchy, can use global -c
option git specify repository use:
git -c /home/my_folder/git/repo log --no-merges -10 -p
usually it's easier cd
repository before running git commands.
Comments
Post a Comment