DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Data Engineering
  3. Databases
  4. Source Control Using Atlassian Bitbucket

Source Control Using Atlassian Bitbucket

This tutorial shows you how to use source control for your project's Git repositories using Atlassian Bitbucket.

Thiruppathi Rengasamy user avatar by
Thiruppathi Rengasamy
CORE ·
Jun. 15, 17 · Tutorial
Like (4)
Save
Tweet
Share
4.40K Views

Join the DZone community and get the full member experience.

Join For Free

what is bitbucket?

bitbucket is a web-based hosting service that distributes source code and development projects. they are offering free accounts for up to five members in a single team and we can create an unlimited number of private repositories. we can upload the source code from github and visual studio.

bitbucket features

  • pull requests with code reviews and comments
  • merge code checks
  • tracking
  • wikis
  • more add-ons
  • team monitoring

step 1

create a new account on the atlassian bitbucket site from here . you can also use a social network to sign up. after the login page, it should appear like the picture below.
bitbucket

step 2

create your new project team from navigation header- teams> create teams.

bitbucket

add team members using their bitbucket username or email address and manage the groups.

step 3

create your new projects from the navigation header- projects> create project.

bitbucket

select your team or account username on owner list. this project can be accessed only by your team. for that, click privacy check.

step 4

create your new repository in the navigation header- repositories> create repository.

bitbucket

make sure to select the repository owner and project in the list. if you need more features, click “advanced settings” and it should expand the page like the picture below.
bitbucket

once you have checked the issue tracking checkbox, if there are any issues in the developing project stage, you can follow the team member suggestions and comments. this can reduce the dependency on external tracking tools.

step 5

if you have already built the source code in github, click "import repository," or you may go to the navigation header- repositories> import repository

bitbucket

login to the github site and copy your project url. paste it into the url textbox. after clicking the "import repository" button, the project will locate a bitbucket project list for the selected team.

step 6

we have one more option: to upload it directly from visual studio. open visual studio 2017 and create a new project with the name of your choice. i will show the demo as a windows application:

vs 2017>new project >choose windows application
bitbucket

the project will be created like the picture below.
bitbucket

before uploading, the project shows up without a lock symbol.

bitbucket

now, right click above the project and click “add source to source control.”
bitbucket

this action will make the lock symbol appear near all the project files.
bitbucket

then, go to the team explorer window and click the “sync” button under the project.

bitbucket

the first time, it will take you to the “publish” window. select "publish to remote repository," then click “publish git repo.” it shows one textbox copied from the repository url.

bitbucket

paste that in the textbox and click on the “publish” button.
bitbucket

meanwhile, it may ask your login credentials.
bitbucket

now the project source code appears in the repository.

bitbucket

step 7

suppose you want to delete the repository; go to the settings menu, then scroll down to the bottom of the page. locate the “delete repository” button. once you click the button, a popup window will appear.

copy and paste the url to the end of the repository name. then, click the “delete” button. it will automatically remove your repository list.

bitbucket

in this article, we have seen source control using atlassian bitbucket. if you have any queries, please tell me through the comments section.

happy coding...

source control Repository (version control) teams code style

Published at DZone with permission of Thiruppathi Rengasamy, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Real-Time Stream Processing With Hazelcast and StreamNative
  • AWS Cloud Migration: Best Practices and Pitfalls to Avoid
  • How to Secure Your CI/CD Pipeline
  • 5 Factors When Selecting a Database

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: