mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-13 22:30:37 +08:00
commit
28993e5a43
@ -1,127 +0,0 @@
|
||||
translating---geekpi
|
||||
|
||||
Getting Started with Bitbucket for Version Control
|
||||
============================================================
|
||||
|
||||
![](https://www.blogmint.com/frontendUtil/openPage?page=blog-post-read&oId=c41aba944ad4408095c09ccabc1921ec&uId=1a715d24df2f49c0be2acf7d7409ffbb&count=1&image=one-pixel.png)
|
||||
|
||||
Before the Internet became a massive, world-wide phenomenon, teams of developers used to be confined to a reduced physical space. Collaboration with people from the other side of the world was very expensive or almost an impossible dream if a company did not have the funds to support such a venture.
|
||||
|
||||
Fortunately, that is not the case anymore. The Internet gave birth to web-based solutions that allow companies to put together collaborative groups that consist of people thousands of miles apart from each other.
|
||||
|
||||
Since its initial launch in 2008, [Bitbucket][1] has become an increasingly popular choice among professional teams of developers using the Mercurial or Git version control systems (VCS).
|
||||
|
||||
It offers both free accounts with an unlimited number of private repositories (with a maximum of 5 users each) and multiple paid plans that allow to have more users per account. Additionally, repositories marked as public do not have a limit on the number of people who can edit or read their contents.
|
||||
|
||||
### Signing Up with Bitbucket
|
||||
|
||||
To use Bitbucket, you will need to set up a free account. To do so, go to [https://bitbucket.org/][2]and click the Get started for free button.
|
||||
|
||||
To begin, you will need to enter a valid email address and click Continue. Your email account will then be validated and if everything goes as expected you will be prompted to type your desired password. When you’re done, click Continue again and check your email Inbox to confirm the creation of your account:
|
||||
|
||||
[
|
||||
![Bitbucket Singup](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Singup.png)
|
||||
][3]
|
||||
|
||||
Bitbucket Singup
|
||||
|
||||
Once you have verified your email address, you will be asked to choose a username. Your account will then be created and you will be taken to the Bitbucket dashboard where you will be able to start creating teams, projects, and repositories:
|
||||
|
||||
[
|
||||
![Bitbucket Dashboard](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Dashboard.png)
|
||||
][4]
|
||||
|
||||
Bitbucket Dashboard
|
||||
|
||||
As you can see, you can sign up with Bitbucket in a matter of minutes. The folks at Atlassianhave simplified this process so that you can use your time to actually start working on Bitbucket– which is what we will explain next.
|
||||
|
||||
### Getting started with Bitbucket
|
||||
|
||||
Let’s review the must-do actions after you’ve successfully signed up with Bitbucket. They are all available at the top menu:
|
||||
|
||||
[
|
||||
![Explore Bitbucket Features](http://www.tecmint.com/wp-content/uploads/2017/01/Explore-Bitbucket-Features.png)
|
||||
][5]
|
||||
|
||||
Explore Bitbucket Features
|
||||
|
||||
###### 1). Create a team to encourage collaboration by allowing multiple Bitbucket users to share an account plan.
|
||||
|
||||
This will allow them to easily manage repositories owned by the team. To create a team, enter the desired name and make sure the team identification does not exist. Next, enter the email addresses of the people you want to add to the group and indicate if you want to make them Administrators. Finally, click Create:
|
||||
|
||||
[
|
||||
![Bitbucket - Create a Team](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Create-a-Team.png)
|
||||
][6]
|
||||
|
||||
Bitbucket – Create a Team
|
||||
|
||||
###### 2) Create a repository or import an existing one.
|
||||
|
||||
If you have already been working with a Git-based solution, you can easily import your repositories into Bitbucket. Otherwise, you can create one from scratch. Let’s see what you need to do in each case.
|
||||
|
||||
To create a new repository, click the Create repository option from the Repositories menu. Choose a name for the new repository and the project it will be group into. Next, indicate if you want to make it private and the type (Git or Mercurial). Finally, click Create repository:
|
||||
|
||||
[
|
||||
![Bitbucket - Create a New Repository](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Create-a-New-Repository.png)
|
||||
][7]
|
||||
|
||||
Bitbucket – Create a New Repository
|
||||
|
||||
To import an existing repository, choose Import repository from the Repositories dropdown menu. To begin, indicate the source, enter the URL and the required login credentials (if needed).
|
||||
|
||||
Finally, choose the new repository settings and click Import repository. Disregard the warning about a repository not found at the specified URL since it is a dummy one and intended for demonstration purposes only:
|
||||
|
||||
[
|
||||
![Bitbucket - Import Existing Code](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Import-Existing-Code.png)
|
||||
][8]
|
||||
|
||||
Bitbucket – Import Existing Code
|
||||
|
||||
And that’s it. Simple as that.
|
||||
|
||||
### Working with Repositories at Bitbucket
|
||||
|
||||
After you have created a new repository or imported an existing one, it will be listed in your dashboard. At this point you can perform the usual actions such as cloning it, creating branches and pull requests, committing changes, adding a README file, and more:
|
||||
|
||||
[
|
||||
![Bitbucket - Repository Overview](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Repository-Overview.png)
|
||||
][9]
|
||||
|
||||
Bitbucket – Repository Overview
|
||||
|
||||
If you want to learn how to work with repositories, or feel like you need to brush up your git skills you can always refer to the [Bitbucket official documentation][10].
|
||||
|
||||
##### Summary
|
||||
|
||||
As you can see, Bitbucket makes it easy whether you’re new to version control or an experienced user. Don’t hesitate to let us know if you have any questions or comments about this article. We look forward to hearing from you!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
作者简介:
|
||||
|
||||
![](http://1.gravatar.com/avatar/7badddbc53297b2e8ed7011cf45df0c0?s=256&d=blank&r=g)
|
||||
|
||||
I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
via: http://www.tecmint.com/bitbucket-for-version-control/
|
||||
|
||||
作者:[Ravi Saive][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://www.tecmint.com/author/admin/
|
||||
[1]:http://bit.ly/2ieExnS
|
||||
[2]:http://bit.ly/2ioJISt
|
||||
[3]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Singup.png
|
||||
[4]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Dashboard.png
|
||||
[5]:http://www.tecmint.com/wp-content/uploads/2017/01/Explore-Bitbucket-Features.png
|
||||
[6]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Create-a-Team.png
|
||||
[7]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Create-a-New-Repository.png
|
||||
[8]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Import-Existing-Code.png
|
||||
[9]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Repository-Overview.png
|
||||
[10]:https://confluence.atlassian.com/bitbucket/bitbucket-cloud-documentation-home-221448814.html
|
@ -0,0 +1,125 @@
|
||||
使用 Bitbucket 开始版本控制
|
||||
============================================================
|
||||
|
||||
![](https://www.blogmint.com/frontendUtil/openPage?page=blog-post-read&oId=c41aba944ad4408095c09ccabc1921ec&uId=1a715d24df2f49c0be2acf7d7409ffbb&count=1&image=one-pixel.png)
|
||||
|
||||
在互联网成为一个巨大的、世界性的现象之前,开发团队曾经被限制在一个小的物理空间内。如果一家公司没有资金支持这样一个冒险,那么与世界另一方的人合作是一个非常昂贵或几乎不可能的梦想。
|
||||
|
||||
幸运的是,情况不再是这样了。互联网诞生了基于网络的解决方案,允许公司组成的合作团体,包括彼此相距数千英里的人。
|
||||
|
||||
自从 2008 年首次推出以来,[Bitbucket][1]已成为使用 Mercurial 或 Git 版本控制系统(VCS)的开发人员团队中越来越受欢迎的选择。
|
||||
|
||||
它提供两个免费帐户与无限数量的私人存储库(每个最多5个用户)和多个付费计划,允许每个帐户有更多用户。此外,标记为 public 的仓库对可以编辑或读取其内容的人数没有限制。
|
||||
|
||||
### 注册 Bitbucket
|
||||
|
||||
要使用 Bitbucket,你需要设置一个免费帐户。要这样做,请进入 [https://bitbucket.org/][2],然后单击开始免费按钮。
|
||||
|
||||
首先,你需要输入有效的电子邮件地址,然后点击继续。 你的电子邮件帐户将被验证,如果一切正常,你将被提示输入所需的密码。完成后,再次点击“继续”,并检查你的电子邮件收件箱以确认你的帐户是否已创建:
|
||||
|
||||
[
|
||||
![Bitbucket Singup](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Singup.png)
|
||||
][3]
|
||||
|
||||
Bitbucket 注册
|
||||
|
||||
验证电子邮件地址后,系统会要求你选择用户名。 然后将创建你的帐户,你将会进入 Bitbucket 面板,在那里开始创建团队、项目和仓库:
|
||||
|
||||
[
|
||||
![Bitbucket Dashboard](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Dashboard.png)
|
||||
][4]
|
||||
|
||||
Bitbucket 面板
|
||||
|
||||
如你所见,你可以在几分钟内注册 Bitbucket。Atlassianhave 的人简化了这个过程,以便你可以把你的时间真正用在 Bitbucket 上- 我们接下来会解释这个。
|
||||
|
||||
### 使用使用 Bitbucket
|
||||
|
||||
让我们检查下在注册完 Bitbucket 之后必须要做的事情。下面是最需做的清单:
|
||||
|
||||
[
|
||||
![Explore Bitbucket Features](http://www.tecmint.com/wp-content/uploads/2017/01/Explore-Bitbucket-Features.png)
|
||||
][5]
|
||||
|
||||
探索 Bitbucket 功能
|
||||
|
||||
###### 1). 创建一个团队通过允许多个 Bitbucket 用户共享一个账号计划的方式鼓励协作。
|
||||
|
||||
这将允许他们轻松地管理团队拥有的仓库。要创建团队,请输入所需的名称,并确保团队标识不存在。接下来,输入你要添加到群组的人员的电子邮件地址,并指明是否要将其设为管理员。最后,单击创建:
|
||||
|
||||
[
|
||||
![Bitbucket - Create a Team](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Create-a-Team.png)
|
||||
][6]
|
||||
|
||||
Bitbucket – 创建一个团队
|
||||
|
||||
###### 2) 创建或导入一个仓库
|
||||
|
||||
如果你已经使用基于 Git 的解决方案,你可以轻松地将你的仓库导入 Bitbucket。否则,你可以从头创建一个。让我们看看在每种情况下你需要做什么。
|
||||
|
||||
要创建新的仓库,请单击“仓库”菜单中的“创建仓库”选项。为新仓库和要分组到的项目选择一个名称。接下来,指明是否要将其设置为 private 以及类型(Git 或 Mercurial)。最后,单击创建仓库:
|
||||
|
||||
[
|
||||
![Bitbucket - Create a New Repository](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Create-a-New-Repository.png)
|
||||
][7]
|
||||
|
||||
Bitbucket – 创建一个新仓库
|
||||
|
||||
要导入现有仓库,请从仓库下拉菜单中选择导入仓库。要开始导入,请指定源,输入 URL 和所需的登录凭据(如果需要)。
|
||||
|
||||
最后,选择新的仓库设置,然后单击导入仓库。忽略有关在指定的 URL 处找不到的仓库的警告,因为它是虚拟的,仅用于演示目的:
|
||||
|
||||
[
|
||||
![Bitbucket - Import Existing Code](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Import-Existing-Code.png)
|
||||
][8]
|
||||
|
||||
Bitbucket – 导入存在的代码
|
||||
|
||||
就是这样,很简单吧。
|
||||
|
||||
### 在 Bitbucket 中使用仓库工作
|
||||
|
||||
在你创建一个新仓库或者导入一个仓库时,它会在你的列表上展示出来。这时你就能执行一些常规操作比如克隆、创建分支、pull request、提交修改、添加 README 文件等等:
|
||||
|
||||
[
|
||||
![Bitbucket - Repository Overview](http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Repository-Overview.png)
|
||||
][9]
|
||||
|
||||
Bitbucket – 仓库概述
|
||||
|
||||
如果你想了解如何用仓库工作,或者你觉得你想要提升你的 git 技能,你可以参考[ Bitbucket 离线文档][10]。
|
||||
|
||||
##### 总结
|
||||
|
||||
如你所见,不管你是版本管理的新手或者老手,Bitbucket 让它变得简单。如果你对本文有任何疑问或评论,请不要犹豫让我们知道。我们期待听到你的声音!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
作者简介:
|
||||
|
||||
![](http://1.gravatar.com/avatar/7badddbc53297b2e8ed7011cf45df0c0?s=256&d=blank&r=g)
|
||||
|
||||
我是 Ravi Saive,TecMint 的创建者。一个喜爱在互联网上分享技巧和提示的计算机 geek 和 Linux 老手。我的大多数服务运行在 Linux 开源平台上。请在 Twitter、Facebook、Google+ 上关注我。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
via: http://www.tecmint.com/bitbucket-for-version-control/
|
||||
|
||||
作者:[Ravi Saive][a]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://www.tecmint.com/author/admin/
|
||||
[1]:http://bit.ly/2ieExnS
|
||||
[2]:http://bit.ly/2ioJISt
|
||||
[3]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Singup.png
|
||||
[4]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Dashboard.png
|
||||
[5]:http://www.tecmint.com/wp-content/uploads/2017/01/Explore-Bitbucket-Features.png
|
||||
[6]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Create-a-Team.png
|
||||
[7]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Create-a-New-Repository.png
|
||||
[8]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Import-Existing-Code.png
|
||||
[9]:http://www.tecmint.com/wp-content/uploads/2017/01/Bitbucket-Repository-Overview.png
|
||||
[10]:https://confluence.atlassian.com/bitbucket/bitbucket-cloud-documentation-home-221448814.html
|
Loading…
Reference in New Issue
Block a user