I am writing a bash script to take the latest build from bitbucket and put it Ubuntu. I want to automate this process. I am new to bash scripting so I would appreciate any help
#!/bin/bash
git clone <https://username@bitbucket.org/path location/filename.git
Thank you,
Olivia
Since I didn't receive an answer, I tried it myself and put it on the command line. I added one thing that was adding the user's password in the command when prompted the password will be entered when the code requests for the password. The code below worked in my environment.
#!/bin/bash
name:password@bitbucket.org/path location/filename.git
Olivia
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.