Create a repository and add a teammate

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

  1. Create a repository and add a teammate
  2. Clone and make a change on a new branch
  3. プル リクエストを作成して変更をマージする

You just arrived at the Bitbucket space station and it's time to go through the orientation process, part of which involves making updates to your welcome package and getting them approved. To get you started, we'll walk you through creating a team repository with some content and giving someone access.

Step 1. Create a team and add a teammate

Start by creating a team for your repository and teammate. No need to have a teammate for this tutorial. For our purposes, you'll make a new friend that goes by the username breezycloud.

  1. Click + in the global sidebar and select Team under Create.
  2. Enter a Team name you'd like to use. If you can't think of any, we suggest starting with Planet followed by a number or name, for example Planet Breezy Cloud or Planet 727. If you pick a team name that already exists, you may need to edit the Team ID because all IDs must be unique.

  3. [完了] をクリックします。

  4. You'll land on your team Repositories page. From there, click Settings.
  5. Click User groups under Access management. You'll see that you have only two groups and you're the only member of both groups.
  6. Click the Developers group. From there, you'll see a place to add new members.
  7. Search for breezycloud in the Username or email address field, pick that user, and click Add.

Now when you create a pull request for your future repository, you'll have someone to review it!

Step 2. Create a repository with some content

No worries about putting a whole bunch of code together for this repository. We'll provide you with some to start.

  1. Click + in the global sidebar and select Repository under Create.
  2. Make sure the team you created is the repository Owner.
  3. Enter anything you want for the Project name and Repository name. If you can't think of anything, how about Welcome package and First impressions, respectively.
  4. From Include a README?, select either of the Yes options.
  5. From Version control system, pick an option for the type of repository you want to create. If you're not sure, keep as is.
  6. Click Create repository and you'll land on the Source view of your brand, new repository.
  7. From Source, select  > Add file.
  8. Name the file survey.html, then copy this code and paste it into the main text area.

    Copy and paste these contents
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style media="screen" type="text/css">
    body {
    margin: auto;
    width: 700px;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    background-color: #172B4D;
    }
    body>h1 {
    margin: 50px;
    font-size: 50px;
    text-align: center;
    color: #0052CC;
    }
    </style>
    </head>
    <body>
    <h1>Team up in space</h1>
    <p>
    Welcome to the team! You've made it this far so we know that you've got the potential to do great things. Because you're going to be collaborating with other awesome people, anything you add needs to be code reviewed and approved. That's just how a team works! You should have already created a branch and checked it out locally. If you haven't, go back to the tutorial and do that now. We'll be here.
    </p>
    <p>
    Because you're on your own branch, you can go crazy. Spice up this file any way you like. Add more files to this repository if you see fit. If want to take it slow and are just here to learn about pull requests, you can use this opportunity to fill out our short questionaire.
    </p>
    <br>
    <p>
    <b>Question 1</b>: Have you used pull requests before?
    </p>
    <p>
    <b>Answer 1</b>: **** Your answer here ****
    </p>
    <p>
    <b>Question 2</b>: Why do you want to learn about code review?
    </p>
    <p>
    <b>Answer 2</b>: **** Your answer here ****
    </p>
    <p>
    <b>Question 3</b>: Who do you plan to work with on Bitbucket?
    </p>
    <p>
    <b>Answer 3</b>: **** Your answer here ****
    </p>
    </body>
    </html>
  9. Click Commit and then Commit again from the dialog.

Your repository is looking pretty good now. Take a look around if you feel like it. If you click Settings and go to the User and groups access page, you'll see that your breezycloud teammate you added has repository access through the Developers group.

次へ

最終更新日 2018 年 7 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.