#7
Dec 12, 2008

Contributing to Rails with Git-用Git为Rails作贡献

If you want Rails to behave a certain way, try changing it and submitting a patch. This episode will show how to do exactly this using Git.
如果你想要Rails以特定方式运转,尝试改变它,并提交一个patch.这个视频讲述了如何正确使用Git.

Bittorrent 种子下载 推荐使用 (45.5 MB, 11:36)
直接下载/Direct Download Link (45.5 MB, 11:36)
# run tests
rake test
cd activerecord
rake test_mysql
rake test_mysql TEST='test/cases/named_scope_test.rb

# make changes on branch
git checkout -b named_scope_with_bang
git commit -a -m "named_scope with bang"

# pull recent changes and apply to branch
git checkout master
git pull
git checkout named_scope_with_bang
git rebase master

# make patch
git format-patch master --stdout > ~/named_scope_with_bang.diff

# apply patch
curl ... | git am
create database activerecord_unittest;
create database activerecord_unittest2;
grant all on activerecord_unittest.* TO rails@localhost;
grant all on activerecord_unittest2.* TO rails@localhost;

添加留言:/Add your comment:

(SKIP THIS ONE)

(required)

(not shown)


(可以使用pastie或者gist添加代码) (use pastie or gist for code)

if you want to help:
required:
BT下载工具
Get Bittorrent Tool
VLC播放器
Get VLC Media Player