Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Within a Bash script, I need a way to login to my Bitbucket account using script commands

Ned Tennant
Contributor
June 1, 2018

Inside my Bash script I issue the "git pull" command to update my sandbox repository but the command fails because I don't know the correct way to include my password with the "git pull" command.

This Bash script will become a Linux cron job for nightly execution, otherwise I would lust type the git pull on the command line and enter my password then execute the script.

Is there a way that I can use the git pull command along with my password inside my Bash script?

Thank You.

Regards,

 

 

1 answer

0 votes
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 1, 2018

Is there a reason you can't use SSH?

Ned Tennant
Contributor
June 1, 2018

No reason at all.

Thanks for your input.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events