SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Why Host codes online???
Any programmer worth their salt knows that source
control is crucial. The most obvious perk is allowing you to
securely store your code in a safe place. It doesn’t stop there.
Having good source control makes it easier to experiment
with new features without worrying about irreparably
damaging your program. Source control is something we all
should do.
Sample Hosting services include:
SourceForge Google Code GitHub BitBucket CodePlex
The need of online collaborative work.
1. Track your change sets, monitor your source code
edits, and drill through to your source files.
2. It’s worth having a backup.
3. The quicker you make your code publicly available,
the quicker you can gain feedback and people to
help you.
4. Getting feedback of users and interested developers
who might want to join your team, provide helpful
idea and move this project forward.
4
Definition – BitBucket
Bitbucket is a hosting service for projects that use either the
Mercurial or Git revision control systems. Bitbucket offers free
source code hosting for Git and Mercurial projects as well as
project wikis and issue tracking. Host your code online in as
many public and private repositories as you want. Free five-user
tier accounts! Manage your projects with confidence with built-
in issue trackers, wikis, code comments, and pull requests.
Bitbucket is written in Python using the Django web framework.
It is similar to GitHub, which primarily uses Git.
Technical Terms
1.
Repository
2.
Fork
3.
Clone
6.
7.
Pull
Commit
5.
Push
4. 8.
Git Fetch
 It refers to a storage location,
often for safety or preservation.
A repository contains all of the
project files (including
documentation), and stores
each file's revision history.
Repositories can have multiple
collaborators and can be either
public or private.
Repository
 A fork is a personal copy of
another user's repository that lives
on your account. Forks allow you to
freely make changes to a project
without affecting the original.
Forks remain attached to the
original, allowing you to submit a
pull request to the original's author
to update with your changes.
Fork
 A clone is a copy of a repository
that lives on your computer
instead of on a website's server
somewhere, or the act of making
that copy.
With your clone you can edit the
files in your preferred editor and
use Git to keep track of your
changes without having to be
online.
Clone
 Git is an open source
program for tracking
changes in text files.
Git
Pushing refers to sending your committed
changes to a remote repository such as Bitbucket.
For instance, if you change something locally,
you'd want to then push those changes so that
others may access them.
Push
 Pull refers to when you are
fetching in changes and merging them.
For instance, if someone has edited the remote
file you're both working on, you'll want to pull in
those changes to your local copy so that it's up to
date.
Pull
 A commit, or "revision", is an individual
change to a file (or set of files). It's like when
you save a file, except with Git, every time you
save it creates a unique ID (a.k.a. the "SHA" or
"hash") that allows you to keep record of what
changes were made when and by who.
Commits usually contain a commit message
which is a brief description of what changes
were made.
Commit
 Fetching refers to getting the latest changes from
an online repository (like BitBucket) without
merging them in.
Once these changes are fetched you can compare
them to your local branches (the code residing on
your local machine)
Fetch
1.
Create a repository
To create a repo, do the following:
1. Log into Bitbucket Cloud under your individual account.
2. Click Repositories > Create repository or the Create new
repository link.
3. Choose a repository Owner.
This only appears if you are creating under an account
with membership in one or more teams.
4. Enter a Name and Description for your repository.
5. Tick Private if you want to hide your repository from the
general public, so that only selected people can see it.
6. Select the Repository type.
7. Click Create repository.
How to:
2.
Clone a repository
1. Navigate to the repository in Bitbucket.
2. Click the Clone button.
3. Copy the clone command (either the SSH format or the
HTTPS).
If you are using the SSH protocol, ensure your public key
is in Bitbucket and loaded on the local system to which
you are cloning.
4. Launch a terminal window.
5. Change to the local directory where you want to clone
your repository.
6. Paste the command you copied from Bitbucket, for
example:
$ git clone ssh://git@bitbucket.example.com:7999/PROJ/repo.git
3.
Add code to you newly created repo.
1. $ mkdir /path/to/your/project
2. $ cd /path/to/your/project
3. $ git init
4. $ git commit -m "First commit”
5. $ git remote add origin
ssh://git@bitbucket.org/username/bbreponame.git
6. $ git push -u origin --all
Create a local clone of your fork
1. On Bitbucket, navigate to your fork of your repository.
2. In the right sidebar of your fork's repository page, copy the clone
URL for your fork.
3. Open git Terminal
4. Type git clone and then paste the URL you copied in Step 2. It will
look like this, with your Bitbucket username:
5. Press Enter. Your local clone will be created
4.
$ git clone https://github.com/YOUR-USERNAME/your-repo
Benefits of BitBucket…….
It’s worth having a
backup
Git has proven to
be effective for
projects with
hundreds and even
thousands of active
contributors.
Avoid parallel code
conflicts and
overwriting of each
others' work.
Questions / Answers

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

CI/CD with Github Actions
CI/CD with Github ActionsCI/CD with Github Actions
CI/CD with Github Actions
 
Jenkins Introduction
Jenkins IntroductionJenkins Introduction
Jenkins Introduction
 
GitLab.pptx
GitLab.pptxGitLab.pptx
GitLab.pptx
 
Build CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation SlidesBuild CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation Slides
 
Git
GitGit
Git
 
Git Introduction Tutorial
Git Introduction TutorialGit Introduction Tutorial
Git Introduction Tutorial
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub Actions
 
Github
GithubGithub
Github
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 
Learning git
Learning gitLearning git
Learning git
 
Version Control with Git
Version Control with GitVersion Control with Git
Version Control with Git
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version Control
 
Introducing GitLab (June 2018)
Introducing GitLab (June 2018)Introducing GitLab (June 2018)
Introducing GitLab (June 2018)
 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub Actions
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
 
Github
GithubGithub
Github
 
Introduction to CI/CD
Introduction to CI/CDIntroduction to CI/CD
Introduction to CI/CD
 
Introduction to git & GitHub
Introduction to git & GitHubIntroduction to git & GitHub
Introduction to git & GitHub
 
Difference between Github vs Gitlab vs Bitbucket
Difference between Github vs Gitlab vs BitbucketDifference between Github vs Gitlab vs Bitbucket
Difference between Github vs Gitlab vs Bitbucket
 

Andere mochten auch

Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence Parag Gajbhiye
 
FishEye and Crucible Presentation
FishEye and Crucible PresentationFishEye and Crucible Presentation
FishEye and Crucible PresentationEllen Feaheny
 
Continuous Integration with Bamboo for Salesforce
Continuous Integration with Bamboo for SalesforceContinuous Integration with Bamboo for Salesforce
Continuous Integration with Bamboo for SalesforceKlea Kolaric
 
Points.com fisheye crucible code reviews 2011
Points.com fisheye crucible code reviews 2011Points.com fisheye crucible code reviews 2011
Points.com fisheye crucible code reviews 2011pointstechgeeks
 
How Atlassian Scales Bitbucket Data Center on AWS
How Atlassian Scales Bitbucket Data Center on AWSHow Atlassian Scales Bitbucket Data Center on AWS
How Atlassian Scales Bitbucket Data Center on AWSAtlassian
 
Building on the Shoulders of Giants: the Story of Bitbucket Pipelines
Building on the Shoulders of Giants: the Story of Bitbucket PipelinesBuilding on the Shoulders of Giants: the Story of Bitbucket Pipelines
Building on the Shoulders of Giants: the Story of Bitbucket PipelinesAtlassian
 
git-and-bitbucket
git-and-bitbucketgit-and-bitbucket
git-and-bitbucketazwildcat
 
Using Bitbucket and Mercurial
Using Bitbucket and MercurialUsing Bitbucket and Mercurial
Using Bitbucket and MercurialGramener
 
AtlasCamp 2015: Bitbucket: Building kick-ass tools for 2.5M developers
AtlasCamp 2015:  Bitbucket: Building kick-ass tools for 2.5M developersAtlasCamp 2015:  Bitbucket: Building kick-ass tools for 2.5M developers
AtlasCamp 2015: Bitbucket: Building kick-ass tools for 2.5M developersAtlassian
 
AtlasCamp 2015: Builders advancing humanity: Past to future
AtlasCamp 2015: Builders advancing humanity: Past to futureAtlasCamp 2015: Builders advancing humanity: Past to future
AtlasCamp 2015: Builders advancing humanity: Past to futureAtlassian
 
Making the Switch: One Team's Story of Adopting JIRA, FishEye, Eclipse & Myly...
Making the Switch: One Team's Story of Adopting JIRA, FishEye, Eclipse & Myly...Making the Switch: One Team's Story of Adopting JIRA, FishEye, Eclipse & Myly...
Making the Switch: One Team's Story of Adopting JIRA, FishEye, Eclipse & Myly...Atlassian
 
The Fisheye Analytics media lens training deck
The Fisheye Analytics media lens training deckThe Fisheye Analytics media lens training deck
The Fisheye Analytics media lens training deckFisheye Analytics
 
Polymer project presentation
Polymer project presentationPolymer project presentation
Polymer project presentationjskvara
 
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17GreeceJS
 
Release & Change management in salesforce
Release & Change management in salesforceRelease & Change management in salesforce
Release & Change management in salesforceKalyan Lanka ☁
 

Andere mochten auch (20)

Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
 
Bitbucket and git
Bitbucket and gitBitbucket and git
Bitbucket and git
 
FishEye and Crucible Presentation
FishEye and Crucible PresentationFishEye and Crucible Presentation
FishEye and Crucible Presentation
 
Continuous Integration with Bamboo for Salesforce
Continuous Integration with Bamboo for SalesforceContinuous Integration with Bamboo for Salesforce
Continuous Integration with Bamboo for Salesforce
 
Points.com fisheye crucible code reviews 2011
Points.com fisheye crucible code reviews 2011Points.com fisheye crucible code reviews 2011
Points.com fisheye crucible code reviews 2011
 
How Atlassian Scales Bitbucket Data Center on AWS
How Atlassian Scales Bitbucket Data Center on AWSHow Atlassian Scales Bitbucket Data Center on AWS
How Atlassian Scales Bitbucket Data Center on AWS
 
Building on the Shoulders of Giants: the Story of Bitbucket Pipelines
Building on the Shoulders of Giants: the Story of Bitbucket PipelinesBuilding on the Shoulders of Giants: the Story of Bitbucket Pipelines
Building on the Shoulders of Giants: the Story of Bitbucket Pipelines
 
git-and-bitbucket
git-and-bitbucketgit-and-bitbucket
git-and-bitbucket
 
Using Bitbucket and Mercurial
Using Bitbucket and MercurialUsing Bitbucket and Mercurial
Using Bitbucket and Mercurial
 
fms9_cwp_php_en
fms9_cwp_php_enfms9_cwp_php_en
fms9_cwp_php_en
 
AtlasCamp 2015: Bitbucket: Building kick-ass tools for 2.5M developers
AtlasCamp 2015:  Bitbucket: Building kick-ass tools for 2.5M developersAtlasCamp 2015:  Bitbucket: Building kick-ass tools for 2.5M developers
AtlasCamp 2015: Bitbucket: Building kick-ass tools for 2.5M developers
 
AtlasCamp 2015: Builders advancing humanity: Past to future
AtlasCamp 2015: Builders advancing humanity: Past to futureAtlasCamp 2015: Builders advancing humanity: Past to future
AtlasCamp 2015: Builders advancing humanity: Past to future
 
Making the Switch: One Team's Story of Adopting JIRA, FishEye, Eclipse & Myly...
Making the Switch: One Team's Story of Adopting JIRA, FishEye, Eclipse & Myly...Making the Switch: One Team's Story of Adopting JIRA, FishEye, Eclipse & Myly...
Making the Switch: One Team's Story of Adopting JIRA, FishEye, Eclipse & Myly...
 
Introduction to polymer project
Introduction to polymer projectIntroduction to polymer project
Introduction to polymer project
 
The Fisheye Analytics media lens training deck
The Fisheye Analytics media lens training deckThe Fisheye Analytics media lens training deck
The Fisheye Analytics media lens training deck
 
Polymer project presentation
Polymer project presentationPolymer project presentation
Polymer project presentation
 
Reactjs
Reactjs Reactjs
Reactjs
 
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
 
Release & Change management in salesforce
Release & Change management in salesforceRelease & Change management in salesforce
Release & Change management in salesforce
 
Google Polymer Framework
Google Polymer FrameworkGoogle Polymer Framework
Google Polymer Framework
 

Ähnlich wie BitBucket presentation

Bitbucket Devops PPT.pptx
Bitbucket Devops PPT.pptxBitbucket Devops PPT.pptx
Bitbucket Devops PPT.pptxXIE2020Students
 
Rc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocidoRc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocidoLuis Bertel
 
git github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxAbelPhilipJoseph
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hubNaveen Pandey
 
Hacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginnersHacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginnersDeepikaRana30
 
Beginner's guide to git and github
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github SahilSonar4
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfuzair
 
Git, github and the hacktober fest
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober festUtkarshRaj83
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticlePRIYATHAMDARISI
 

Ähnlich wie BitBucket presentation (20)

Bitbucket Devops PPT.pptx
Bitbucket Devops PPT.pptxBitbucket Devops PPT.pptx
Bitbucket Devops PPT.pptx
 
Rc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocidoRc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocido
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
git github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptx
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
Git & GitHub N00bs
Git & GitHub N00bsGit & GitHub N00bs
Git & GitHub N00bs
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
Hacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginnersHacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginners
 
Beginner's guide to git and github
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
 
git Versioning
git Versioninggit Versioning
git Versioning
 
Git
GitGit
Git
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Git, github and the hacktober fest
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober fest
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
 
GitHub Workflows for Technical Communication
GitHub Workflows for Technical CommunicationGitHub Workflows for Technical Communication
GitHub Workflows for Technical Communication
 
Get Git with It! A Developer's Workshop.pptx
Get Git with It! A Developer's Workshop.pptxGet Git with It! A Developer's Workshop.pptx
Get Git with It! A Developer's Workshop.pptx
 
Contributing to the AtoM documentation
Contributing to the AtoM documentationContributing to the AtoM documentation
Contributing to the AtoM documentation
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
 

BitBucket presentation

  • 1.
  • 2. Why Host codes online??? Any programmer worth their salt knows that source control is crucial. The most obvious perk is allowing you to securely store your code in a safe place. It doesn’t stop there. Having good source control makes it easier to experiment with new features without worrying about irreparably damaging your program. Source control is something we all should do. Sample Hosting services include: SourceForge Google Code GitHub BitBucket CodePlex
  • 3. The need of online collaborative work. 1. Track your change sets, monitor your source code edits, and drill through to your source files. 2. It’s worth having a backup. 3. The quicker you make your code publicly available, the quicker you can gain feedback and people to help you. 4. Getting feedback of users and interested developers who might want to join your team, provide helpful idea and move this project forward.
  • 4. 4 Definition – BitBucket Bitbucket is a hosting service for projects that use either the Mercurial or Git revision control systems. Bitbucket offers free source code hosting for Git and Mercurial projects as well as project wikis and issue tracking. Host your code online in as many public and private repositories as you want. Free five-user tier accounts! Manage your projects with confidence with built- in issue trackers, wikis, code comments, and pull requests. Bitbucket is written in Python using the Django web framework. It is similar to GitHub, which primarily uses Git.
  • 6.  It refers to a storage location, often for safety or preservation. A repository contains all of the project files (including documentation), and stores each file's revision history. Repositories can have multiple collaborators and can be either public or private. Repository
  • 7.  A fork is a personal copy of another user's repository that lives on your account. Forks allow you to freely make changes to a project without affecting the original. Forks remain attached to the original, allowing you to submit a pull request to the original's author to update with your changes. Fork
  • 8.  A clone is a copy of a repository that lives on your computer instead of on a website's server somewhere, or the act of making that copy. With your clone you can edit the files in your preferred editor and use Git to keep track of your changes without having to be online. Clone
  • 9.  Git is an open source program for tracking changes in text files. Git
  • 10. Pushing refers to sending your committed changes to a remote repository such as Bitbucket. For instance, if you change something locally, you'd want to then push those changes so that others may access them. Push
  • 11.  Pull refers to when you are fetching in changes and merging them. For instance, if someone has edited the remote file you're both working on, you'll want to pull in those changes to your local copy so that it's up to date. Pull
  • 12.  A commit, or "revision", is an individual change to a file (or set of files). It's like when you save a file, except with Git, every time you save it creates a unique ID (a.k.a. the "SHA" or "hash") that allows you to keep record of what changes were made when and by who. Commits usually contain a commit message which is a brief description of what changes were made. Commit
  • 13.  Fetching refers to getting the latest changes from an online repository (like BitBucket) without merging them in. Once these changes are fetched you can compare them to your local branches (the code residing on your local machine) Fetch
  • 14. 1. Create a repository To create a repo, do the following: 1. Log into Bitbucket Cloud under your individual account. 2. Click Repositories > Create repository or the Create new repository link. 3. Choose a repository Owner. This only appears if you are creating under an account with membership in one or more teams. 4. Enter a Name and Description for your repository. 5. Tick Private if you want to hide your repository from the general public, so that only selected people can see it. 6. Select the Repository type. 7. Click Create repository. How to:
  • 15. 2. Clone a repository 1. Navigate to the repository in Bitbucket. 2. Click the Clone button. 3. Copy the clone command (either the SSH format or the HTTPS). If you are using the SSH protocol, ensure your public key is in Bitbucket and loaded on the local system to which you are cloning. 4. Launch a terminal window. 5. Change to the local directory where you want to clone your repository. 6. Paste the command you copied from Bitbucket, for example: $ git clone ssh://git@bitbucket.example.com:7999/PROJ/repo.git
  • 16. 3. Add code to you newly created repo. 1. $ mkdir /path/to/your/project 2. $ cd /path/to/your/project 3. $ git init 4. $ git commit -m "First commit” 5. $ git remote add origin ssh://git@bitbucket.org/username/bbreponame.git 6. $ git push -u origin --all Create a local clone of your fork 1. On Bitbucket, navigate to your fork of your repository. 2. In the right sidebar of your fork's repository page, copy the clone URL for your fork. 3. Open git Terminal 4. Type git clone and then paste the URL you copied in Step 2. It will look like this, with your Bitbucket username: 5. Press Enter. Your local clone will be created 4. $ git clone https://github.com/YOUR-USERNAME/your-repo
  • 17. Benefits of BitBucket……. It’s worth having a backup Git has proven to be effective for projects with hundreds and even thousands of active contributors. Avoid parallel code conflicts and overwriting of each others' work.