banner



How To Install Bitbucket In Ubuntu

Hello friends, welcome to findnerd. Today I am going to tell you how to create repository and upload files to Bitbucket using control line in Ubuntu 14.04. Earlier creating repository to Bitbucket, you demand to have an account beginning.

Getting started

Step ane: Sign up to Bitbucket. Click on this url to sign up: https://bitbucket.org/account/signup/

Step two: Now enter your email, password and full proper noun to keep your registration.

Step 3: When your registration is complete, verify your email address.

Creating Repository

Step 1: Login to Bitbucket. Click on this url to login: https://bitbucket.org/account/signin/?side by side=/account/signup/

Stride 2: Now click on Repositories and 'Create repository' equally shown below:

Step 3: Create new repository by selecting Possessor, giving repository, proper noun etc as shown below:

Step 4: In guild to clone repository y'all need to click on your repository and select clone option from the Actions menu. Please accept a await on the screen shot below:

Stride five: Click on clone . Now it will show you the pop-up dialog box for cloning as shown below:

Step vi: Now copy this command and go to your last window by pressing ctrl+alt+t

Step 7: Go to your directory where y'all want to create a new projection. Example: /var/world wide web/html/version_one. Here version_one is the name of the projection.

Step 8: At present paste this copied command and hit Enter:

          git clone https://amuk89@bitbucket.org/bikewale/version_one.git        

Step ix: Later pressing Enter button from the keyboard, prompt volition come up up for countersign. Please enter your bitbucket password. At present your repository has been cloned successfully.

Uploading files to Bitbucket repository

In order to upload files to the bitbucket repository, you demand to add project to the local repository besides. Now yous can create project within the version_one binder (bitbucket repository proper name as mentioned in a higher place). As shown below, you need to paste your projection inside version_one folder.

Footstep 1: At present in the terminal window become to the repository:

          $ cd /var/www/html/version_one/        

Step 2: Create a new file by entering following lines with content

          $ echo "Hello World" >> amuk.txt        

Your file has been created to the local repository folder.

Stride iii: Now you need to check the status of the local repository. Now in guild to compare your local repository project with the Bitbucket repository you demand to use the command "git status" every bit shown beneath:

          $ git status  On branch chief Initial commit Untracked files:   (use "git add <file>..." to include in what will exist committed)     locations.txt nothing added to commit but untracked files nowadays (use "git add together" to rail)        

The file is untracked means it is not the office of your git repository .

Step 4: In order to track this file you lot demand to add files using command:

          $ git add amuk.txt        

Step 5: Now you can check the status of the file:

          $ git status  On branch primary Initial commit Changes to exist committed:   (utilise "git rm --cached <file>..." to unstage)     new file: amuk.txt        

Y'all can run into that new file amuk.txt has been added and y'all can commit it .

Step six: Commit the file by inbound the following command in the terminal window:

          $ git commit -m 'My Beginning Commit' [master 31f54aa] My First Commit  1 file changed, 1 insertion(+)  create way 100644 amuk.txt        

Step 7: Now Enter the git push button command origin master command in order to create a file to the bitbucket repository as shown beneath:

          $ git button origin chief Countersign for 'https://amuk89@bitbucket.org':  Counting objects: 5, done. Delta pinch using upward to iv threads. Compressing objects: 100% (2/ii), done. Writing objects: 100% (three/three), 319 bytes | 0 bytes/s, washed. Total three (delta 0), reused 0 (delta 0) To https://amuk89@bitbucket.org/bikewale/version_one.git    b045afe..31f54aa  main -> master        

Now your commits are reflected to the Bitbucket repository.

All done!

Thanks for reading the web log.

Source: https://findnerd.com/list/view/How-to-upload-files-to-Bitbucket-in-Ubuntu-14-04/27498/

Posted by: kimbroughhimend.blogspot.com

0 Response to "How To Install Bitbucket In Ubuntu"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel