2010年2月 的存档

因未知原因,启用新域名HITANGJUN.COM 原tj4c.com将在4月2号之后废弃,所有内容将迁移到http://blog.hitangjun.com/ 下 所有FEDD都已更新您可以订阅 http://feeds2.feedburner.com/tj4c http://feed.feedsky.com/tj4c http://hitangjun.com/的内容暂时还没想好要做什么 你还可以在以下站点跟踪我的最新信息 https://twitter.com/tangjun http://www.google.com/reader/shared/tangjun1225

2010年2月25日10:29 | 没有评论
分类: 建站手记
标签:

CodeBeamer+Git的整合有以下好处 利用CodeBeamer的Managed Git Repository来管理稳定的 source code版本.虽然团队成员有各自修改的branch, 但最终还是要push到CodeBeamer的Managed Repository CodeBeamer的Managed Repository方便建立与维护, 例如 Repository可透过CodeBeamer Web接口来建立 使用者账号管理, 透过CodeBeamer来管理使用者的ssh public key E-Mail通知管理 Source code change set与Issue的整合 Baseline/Release tag与source code的关联容易. 下载CodeBeamer http://www.intland.com/products/download.html 安装Git http://progit.org/book/zh/ch1-4.html 安装CodeBeamer http://cbchina.esast.com/cb/wiki/9375 安装CodeBeamer需要特定的CodeBeamer账号 $ adduser codebeamer $ su – codebeamer 赋予文件执行的权限 $chmod a+x ./CB-x.x-linux.bin $sh ./CB-x.x-linux.bin 启动CodeBeamer $/installdir/bin/startup 停止CodeBeamer $/installdir/bin/stop 安装后需要注册https://codebeamer.com/cb/createUser.spr激活系统才能使用 接下来你可能会想到弄个项目试一试,参考这里 首先在CodeBeamer中新建账号,新建项目,为项目制定成员,设定权限,这些都很简单,自己找找就知道怎么做了 新建账号后在账号设定中添加你的public SSH-KEY,如果有问题请参考这里,特别是文件权限的设定。 另外请注意: [...]

2010年2月8日17:25 | 没有评论
分类: IT技术
标签: ,

新建Git server的账号 $ adduser git $ su – git $ cd $ mkdir .ssh 关于如何设定无密码登录访问服务器,请参考这里 $ cat /tmp/id_rsa.jessica.pub >> ~/.ssh/authorized_keys 使用 –bare 选项运行 git init 来设定一个空仓库 $ cd /opt/git $ mkdir project.git $ cd project.git $ git –bare init 在本地客户端 $ cd myproject $ git init $ git add . $ git commit -m ‘initial [...]

2010年2月8日17:14 | 没有评论
分类: IT技术
标签:

1) 在本地机器中的~/.ssh/目录下执行下命令, (linux本身自带了,windows下可以使用Cygwin或者使用http://code.google.com/p/msysgit都行,你还可以在linux下生成好了再下载到本机用户目录下.ssh) ssh-keygen -t dsa 将生成两个文件,id_dsa和id_dsa.pub. 2) 将id_dsa.pub拷贝到远程机器,并且将id_dsa.pub的内容添加到~/.ssh/authorized_keys中. cat id_dsa.pub >> ~/.ssh/authorized_keys 注意:目录.ssh的权限必须是700;文件authorized_keys的权限必须是600. su – chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys 调试 ssh -vvv git@192.168.0.62 如果出现错误信息基本上都是文件权限的设定有问题。 常见的错误信息有 Permission denied (publickey,gssapi-with-mic) fatal: The remote end hung up unexpectedly 要求输入密码 Password: [via]

2010年2月8日16:59 | 1 条评论
分类: IT技术
标签:

Git 命令用法 安装Git可以参考这里 初次运行前的配置 使用git config –global 命令配置全局的设定 $ git config –global user.name “John Doe” $ git config –global user.email johndoe@example.com 如果要在某个特定的项目中使用其他名字或者电邮,只要去掉 –global 选项重新配置即可,新的设定保存在当前项目的 .git/config 文件里 设置的是默认使用的文本编辑器 $ git config –global core.editor emacs 在解决合并冲突时使用哪种差异分析工具 $ git config –global merge.tool vimdiff 检查已有的配置信息,可以使用 git config –list 命令 有时候会看到重复的变量名,那就说明它们来自不同的配置文件(比如 /etc/gitconfig 和 ~/.gitconfig),不过最终 Git 实际采用的是最后一个。 版本库的使用 初始化版本库 $ git [...]

2010年2月8日16:43 | 1 条评论
分类: IT技术
标签: