Monday, 6 February 2017

basics of bitbucket version control tool

Bitbucket is another distributed version control tool from Atlasian.



Setup:

Prerequisite 1:

Go to https://bitbucket.org/ and create an account with gmail id and verify email id ( check your gmail inbox for verification).

Prerequisite 2:  

We have two have two options to choose ( Git and Mercurial , I choose Git)
Download GitHub here ( https://git-scm.com/downloads)


Create Repository:
Be on bitbucket.org and click on repositories -> create repository -> Enter name “MyFirstRepo”, choose Repository type as Git and then click on “Create repository”.



Here is your Repo:
https://EmailId@bitbucket.org/Accountname/myfirstrepo.git




Now onwards We just need to follow git hub commands.

·         Open Project folder in Explorer
·         Right click and select Git bash
·         $git init
·         $git add *
·         $git commit –m “my first commit”
·         $git remote add origin https://github.com/kasthurikranthikumar/EmptyMavenProject.git
·         $git push origin master


Now Lets create pull request:

 Actions -> Create pull Request
Same as git hub.



No comments:

Post a Comment