Under Kubuntu 18 with project at bitbucket I need to review all changes during development made to some file.
I found this How to view file history in Git? branch , but trying to check all updates of resources/js/app.js file I got errors :
user@projectpath$ git log resources/js/app.js
fatal: ambiguous argument 'resources/js/app.js': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
user@projectpath$ git diff resources/js/app.js
fatal: ambiguous argument 'resources/js/app.js': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
user@projectpath$ git whatchanged resources/js/app.js
fatal: ambiguous argument 'resources/js/app.js': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
I do not see why error? Or other version of git ?
$ git --version
git version 2.17.1
Also I tried to run command :
gitk --follow resources/js/app.js
But invalid argument errors... Which way is valid ? Thanks!