Ad

What Is To Be Done To Fix Git Log Command Failing From A Bitrise Script

- 1 answer

Consider:

git log --pretty="format: %s" master..HEAD

This is failing from a Bitrise script step with the below error:

fatal: ambiguous argument 'master..HEAD': unknown revision or path not in the working tree.

Ad

Answer

Make sure you run below git commands before running the git log command mentioned.

git fetch --all

git branch --set-upstream master origin/master
Ad
source: stackoverflow.com
Ad