Web Content Display

As UPF members or researchers, you own a free academic plan on Bitbucket. That means that you have unlimited storage for being part of UPF. To use the academic plan, you need to create an account using your educational email account e.g. [email protected].

You can create your Bitbucket account here: Bitbucket

Now you that you have created your account, you should have activated your academic plan. Nevertheless, there is the possibility that your account has not been set as academic. If that is your case, you need to fill this form in order to get the academic plan.

If you don't know if you are using an academic plan, click on the user button on the bottom-left corner of the screen and choose Bitbucket settings.

After that, click on plan details on the list to your left. Here you can check which plan are you on and what are the existent plans.



 

1.- Generate a new SSH key pair (if you haven't already):

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Just type Enter Key to the answers

 

2.- Add your SSH key to the ssh-agent:

eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa

 

3.- Copy your SSH public key:

cat ~/.ssh/id_rsa.pub

 

4.- Log in to your Bitbucket account and go to your "Personal settings".

5.- Click on "SSH Keys" and then "Add Key".

6.- Paste your SSH public key in the "Key" field and give it a name in the label field.

7.- Click on "Add Key" to save your SSH key to Bitbucket.

8.- Verify that SSH is working by cloning a Bitbucket repository over SSH:

git clone [email protected]:username/repo.git

 

First of all, we will need some software in order to communicate with Bitbucket server; download git client.

 

Linux:

The only thing you need to do is executing this command on your terminal.

$ sudo apt-get install git gitk 

 

Windows:

You will need to download gi client from the following website: http://git-scm.com/downloads

After this, turn on all the options by default when executing the installer.

 

Once the installation has been completed you will now have the possibility of using Git commands from your terminal (Git terminal/GUI on Windows).

 

In order to set up Git client, we need to introduce our Atlassian user and its corresponding email using these commands.

$ git config --global user.name "UserName"
$ git config --global user.email "[email protected]"

 

(Only for Linux)

If we also want Git client to remember our password whenever we do a push, we need to execute the following command:

$ git config --global credential.helper 'cache --timeout=3600'

 

(If we would like to do the previous step on Windows we would need to install Git Credential Manager for Windows)

In order to create a new repository, we need to log in our Bitbucket account and go to our main page. Once there we should see a white + symbol on the left toolbar. 

Click it and then click on the repository option.

Finally, fill all the gaps and click on the create button.

Now you have a repository! The only thing left is to clone it into your local directory or make it from an existent local repository as it is explained on your Bitbucket's repository source page.