0% found this document useful (0 votes)
204 views

Bitbucket Training

Uploaded by

Pavan Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
204 views

Bitbucket Training

Uploaded by

Pavan Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 26

Bitbucket Overview

Training
Agenda for Today
Objective:
Basic overview for using Bitbucket to collaborate effectively with your teammates.

Agenda:
o Basics
o Demo
o Best Practices
o Space Admin
o Questions
Overview
Basics • How to get around and use the tool

Git in Bitbucket • Git flow in the tool

• Setting up Projects, Repos, and


Admin Permissions
Basics
What are Bitbucket and Git?
oDistributed Source Control
o Git: underlying technology, developed by Linux
o Bitbucket: Atlassian’s repository management tool
oVersioning, collaboration, and development workflow
oSourceTree: Atlassian’s Git GUI
Access
oURL: https://bitbucket.bracketglobal.com
oThere is a Bitbucket sandbox also. Request access if needed.
o Accounts: Issued to specific teams, licenses are limited
o Username and Password are your network credentials
oPermissions range from Read, Write, Admin.
Navigation
Git in Bitbucket
Overview

Create Commit Pull


Clone Push
Branch Changes Request
Useful Commands
o Git --help
o Git Status
o Git Ignore
o Git Commit
o Git Tag
oGit Fetch
oGit Add
oGit Checkout
Remote and Local Repos
o Remote: within Bitbucket
o Local: On your local machine
o SourceTree: GUI for local repos
Git Clone
Branch
o Create your branch from your
Jira ticket, when possible
Checkout Branch
oCheckout your new branch
using SourceTree
oOpen Terminal
oConfirm you now have the new
branch checked out and ready
for changes
Commit & Push
o Commit to your local
o Include JIRA ticket in Commit
o Push to the Remote
Pull Request
o When you are finished with
work and ready for a review you
can create a pull request
o Add comments
o Select target location (change)
o Add specific reviewers
o You can also use SourceTree
o Merge Conflicts display after
creation with helps to resolve
Review
o Open Pull Requests are visible in
the repository
o You will get a notice in your
Inbox if you have been flagged
to review a pull request
o You can add comments that are
tracked
o You can require a minimum
number of approvals before
Merge is available.
Merging Code
o Merging branches
o Pull Request
o Code review and conflicts
Recap

Create Commit Pull


Pull Repo Push
Branch Changes Request
Demo
Admin
JIRA Integration
o Jira tickets show branch, commit,
pull request, merge, and build
details
o Jira Release Hub show overall
status for items in release
o Transitions can be triggered from
Bitbucket activity (branch
creation, commits, etc.)
Permissions
o Permissions are set for the following: o Additional restrictions
o Bitbucket global user/group access o Require pull requests
o Bitbucket project access o Require clean build
o Bitbucket Repo Access o Require Jira ticket reference (even to a
o Bitbucket Branch Access specific Jira project)
Branching Strategies
o Branching model can be customized
o Standard branch types: Master, Development,
Feature, Bug, Release, Hot Fix
o Branching prefixes help to identify and also
automate
o Tagging can be used to designate release
versions when merging to Master
Example: Gitflow
o Create Feature Branch from Development
o Checkout Feature Branch
o Push changes to Feature Branch
o Pull changes from Feature to Dev
o Pull changes from Dev (or Feature) to QA
when ready (if using QA branch)
o Pull changes from QA to release when ready
o Merge release branch to Master after
deploy
o HotFixes branches created from release
branch
o More details here
Questions?

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy