I would like perform certain steps in a pipeline script only if my local branch's file is different from the remote's file.
Locally, I can use:
git diff HEAD:file.txt origin/master:file.txt
This does not work from within my CICD pipeline because I need to authenticate to my bitbucket repo.
Is there a way to pass authentication information (either in URL form like for git pull/push) or is there a different way of passing authentication when using git diff command?