How to Upload My Repo to Bitbucket

by Arthur Nielsen Demain and Chris Ching


As a software programmer y'all accept probably heard the term repository by now, and sometimes maybe Github is not really to your liking. Then peradventure BitBucket might be the right repository for you!

But commencement upward whats a repository y'all ask? To put information technology simply, a repository is a central file storage location. Information technology is used past version control systems to store multiple versions of files.

At present, why BitBucket y'all inquire? Aside from the usual source control you tin actually create teams in BitBucket, this is a scrap better option than Github considering you can have a individual repository that a squad specified by y'all can access at anytime. Additionally, BitBucket likewise integrates easily with Trello (Project  Management Board) for smooth project management and debugging tickets/problems.

Register an Account

Annals for an account on BitBucket.org,  its costless for the get-go 5 users on the squad so information technology's perfect for small-scale teams to commencement with.

In one case that's done and your email is confirmed you should be able to log-in and access your dashboard.

Create a Repository (personal)

Click on create repository to create your own repository, lets proper noun out repository SimpleContacts and lets make it a private repository, for this tutorial we will exist using Git.

You tin can set up to have a readme file and fifty-fifty set the language of the repository. One time completed  it should wait like this

Open Concluding and navigate to a folder of your choice, for this example i also created a folder named bitbucket-repo . Once navigated to the binder copy the instructions for cloning to a higher place and and printing enter

You lot volition see that your repository is now created on your local automobile, you tin navigate to this folder and check the status

Adding updates/files to your repository

Open the Terminal and navigate to the repository of your choice. For this tutorial i have already created an xcode project (SimpleContacts) and saved it to the repository folder.

Doing a git status will say that I accept a whole folder that is non tracked/committed yet.

To add a file/folder for commit you lot can type the filename/foldername individually or just exercise git add . (doing so volition add all files that are inverse so be conscientious).

Doing a git status now will list out all the files that we accept added

The files are now ready to commit. To commit simply type git commit -m "[message]" and press enter.

The files are now committed and ready to button. To do so but just git push button origin master (you tin can also button to a co-operative if you set-up one)

If you refresh your bitbucket project page you volition at present see the new binder/project added to your repository

Create a Team Repository

On your dashboard click on the plus (+) icon, this will open a menu, choose Squad.

Then, fix-up the repository name for your team

In one case completed it will take you lot to your team repository. Its technically similar to a personal repository but can team tin collaborate on it fifty-fifty if information technology is set to private.

Checking your dashboard will list all the available repositories that you have

Transfer an existing repository

Since we already created our SimpleContacts repository we tin can opt to just transfer the contents to our team repository, open the repository you desire to transfer and click on settings, from there you lot will see a push to transfer repository, click it.

It will then pop-up and ask for the repository accost

This will exist will the repository accost of your new repository / or team repository, to get the address but become to the repository in your dashboard and copy the url.

Import an existing repository

If transferring a repository is not for you and then y'all should just choose to import a repository, to practise so merely click import a repository from Github (don't worry you lot can as well import from your ain BitBucket repo)

Fill out the details, also don't forget to provide the url of the repository you lot will be importing from and provide authorization (username and password) if needed. next , select the owner of the repo (which in this case information technology is the team)

Once completed you tin can choose to clone your new team repository on your local machine

Calculation team members

To add members to your squad repository only open the team dashboard and click on settings. And so, click on user and group access.

Yous can merely type the e-mail accost of your team members on the box provided and select the permission yous want to grant them, for this tutorial nosotros added a  sample email address. Information technology then sent an email to it which volition invite the user to your repository in BitBucket.

Integrating Trello

On your team repository click settings, you will see Trello->settings on the lesser click this

Once that'southward opened click Enable Trello, it volition then open pop-up that volition ask for potency.

Prepare it up and end.

You can and then select which boards you lot want to use, in this tutorial nosotros have selected the SimpleContacts Board (you can have multiple boards if you want).

If refresh your dashboard you volition see a short-cut for your Trello Board. In my experience opening sub-menus are a bit buggy so it's still better to use Trello website for this.

Linking a commit to a Trello job

For this tutorial we want to edit the readme of our SimpleContacts Team repository as an example. I went ahead and created the task already.

Then let'southward edit that readme file so!

Once that'southward saved let'south do a quick add, commit, and push button to our repository.

If nosotros open our commits on the dashboard y'all volition see that the commit is now listed

Next, open up your Trello task and you lot will see at the left sidebar BitBucket just under Power-Ups. Click on this, it might inquire for authorization so only practice it.

Once it is authorized it will let you lot choose the repository, permit's choose the team repository.

Information technology will then enquire which commit to attach from that repository and so lets select the commit we merely did.

And that'southward done, you lot volition encounter that the chore has at present an zipper for the commit you just did for your task. Perfect for tracking the progress of your projection!

Conclusion

Nosotros have now successfully covered all the basics that y'all need to know when using BitBucket and even it's Integration with Trello. We successfully created our repository, updated the files, created a team repository and even cloned an existing project. Nosotros also demonstrated how to add connect our Trello task to our BitBucket commits to see how helpful it is when dealing with a project. Hope this tutorial will help you on your way to creating the app of your dreams. Happy Coding! 🙂

colemanwitchany.blogspot.com

Source: https://codewithchris.com/guide-to-bitbucket/

0 Response to "How to Upload My Repo to Bitbucket"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel