bitbucket/git/mecurial教程
bitbucket和 github一样,提供免费的代码托管服务,不同的是bitbucket可以随意创建private仓库,而github的private库是付费的
当你在bitbucket上建仓库的时候,如果你是新手,会给出下面的教程
https://confluence.atlassian.com/display/BITBUCKET/Bitbucket+101
这个教程讲了怎么安装git/mercurial客户端,正在看下面的内容:
- Set up Git and Mercurial(安装客户端)
- Create an Account and a Git Repo(注册账户及建仓,给了许多快捷键,非常方便)
- Clone Your Git Repo and Add Source Files(下载代码到本地,及提交,提交时输入的密码是你的账户密码)
- Fork a Repo, Compare Code, and Create a Pull Request(正在看,fork,pull request)
- Add Users, Set Permissions, and Review Account Plans
- Set up a Wiki and an Issue Tracker
- Set up SSH for Git
- Set up SSH for Mercurial
- Mac Users: SourceTree a Free Git and Mercurial GUI
最近的目标是
(1)我们各自注册一个号cyper,greenn
(2)各自建一个仓库(用git还是mercurial做版本控制? 按照教程先用git)
(3)将对方的仓库下到本地
(4)修改对方仓库中的代码并提交。
(1)我们各自注册一个号cyper,greenn
(2)各自建一个仓库(用git还是mercurial做版本控制? 按照教程先用git)
(3)将对方的仓库下到本地
(4)修改对方仓库中的代码并提交。
(5)fork, pull request, merge
建仓:在bitbucket上快速敲下cr,就会打开建仓页面。