玩玩bitbucket

bitbucket也是一个代码管理服务器,跟之前讲过的github很类似,安装的依旧是以前github用的客户端软件,

当然还会要安装其它的辅助工具,这些官网上讲的都很详细

http://confluence.atlassian.com/display/BITBUCKET/Clone+Your+Git+Repo+and+Add+Source+Files 

现在时间不太够就先记录一下自己平时常用的东西吧

首先是在git bash环境下git  config --global user.name "zhang san"

这句话执行完以后,你提交的工程才会显示你的名字,而不是用bitbucket网站账号的名字来标示代码提交者的名字

git bash的根目录是用户名文件夹ran

首先当然是在网站有一个repo

在本地ran下面建一个folder名字就叫repos

cd 指令进入到repos下面

 粘贴网站上热repo提供的url:git clone https://username@bitbucket.org/username/myrepo.git

执行后在本地repos下面生成了myrepo文件夹

cd 进入,做自己想要的更改,比如就添加了一个readme文件

git add readme

git commit -m 'the first commit'

git push -u origin master

提交成功啦啦啦 

 

posted @ 2012-04-12 18:38  张小然  阅读(739)  评论(0编辑  收藏  举报