I am trying to get a raw file from a bitbucket repository using curl with the following commands:
curl -L -O
https://user:password@bitbucket.org/username/repository/branch/HEAD/filename.txt
curl -L -O
https://user:password@bitbucket.org/username/repository/branch/raw/filename.txt
I have a file committed to the master branch called filename.txt
I want to get the raw version of the above file. What code do i need to get that? All I get from these commands is the HTML code that the page contains