Bitbucket Set-Up

Bitbucket is a Web UI/Online Git repository manager. A cloud version of Bitbucket with Pipelines is now available.

General Uses:

  • Can be used to collaborate on code with inline comments and pull requests.

  • Can create, manage, and share Git (with version control) repositories to build and ship software.

  • Can perform lightweight code reviews.

Access and Configuration:

  1. Login to the Bitbucket Cloud uconnbitbucket workspace with your NetID credentials.

  2. You will need to either update the remote URLs for all repositories or re-clone them from Bitbucket Cloud. When cloning from Bitbucket Cloud for the first time, you will be prompted to grant access between the repository and your client. If you’re logged into the VPN, you may receive a “Could not resolve host: bitbucket.org” message. You will need to disconnect and clone your repository.

  3. In order to perform git operations over HTTPS, you will need to log in to Bitbucket cloud and create an app password (recommended) or upload the public key of an existing (or new) SSH key, as these were not migrated.

    1. To create an App Password:

      1. Click on the cog in the upper right-hand corner, select Personal Bitbucket settings.

      2. From the left navigation menu, select App passwords, then click on Create app password.

      3. You will need save it somewhere because it’s long. The app password might be required each time you pull/commit changes to the repository, especially if you use Visual Studio Code. Another option for pull/commit changes is SourceTree.  The password is automatically saved.

    2. You can also create an SSH key (more advanced). Keep in mind if you use multiple workstations, you’ll need to copy the key to each. The SSH Key persists.

Tips

  • Your Bitbucket username may be different than your NetID. Click on Account Settings to take note of your Bitbucket username.

  • Click on App authorizations to view which applications you have authorized.

  • If you have access to multiple workspaces in the cloud, click on your avatar in the upper right corner, then select the workspace to switch back and forth between workspaces.

  • If you are creating a new project, do not use a hyphen "-" as part of the project key.  You can use an underscore "_".

  • If you are creating new repositories, please add a unique value to the name.  For example, you can use the project key as a prefix.

  • If you experience an authentication error in SourceTree, you can delete this file: C:\Users\<netid>\AppData\Local\Atlassian\SourceTree\passwd.

  • If you cannot view repos within your projects (typically as a result of going back and forth to DC or Cloud), try clearing your cache. (Or test in private / incognito window.).

 

Next

Bitbucket Pipelines

Related Articles