aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/contributing_to_ruby_on_rails.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-05-30 22:53:52 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-05-30 22:53:52 +0530
commitec74763c393c6a5f54eb64f0313610aead7f815a (patch)
tree39e3712c4cfc589083ed5072b6b8373361334441 /guides/source/contributing_to_ruby_on_rails.textile
parent0406a13fac7f809cb511e45583259e66d8739b4f (diff)
parent032f502f1221129d8446d3e25cd8956469b43456 (diff)
downloadrails-ec74763c393c6a5f54eb64f0313610aead7f815a.tar.gz
rails-ec74763c393c6a5f54eb64f0313610aead7f815a.tar.bz2
rails-ec74763c393c6a5f54eb64f0313610aead7f815a.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/contributing_to_ruby_on_rails.textile')
-rw-r--r--guides/source/contributing_to_ruby_on_rails.textile36
1 files changed, 36 insertions, 0 deletions
diff --git a/guides/source/contributing_to_ruby_on_rails.textile b/guides/source/contributing_to_ruby_on_rails.textile
index 72cdea885f..acf75d41cd 100644
--- a/guides/source/contributing_to_ruby_on_rails.textile
+++ b/guides/source/contributing_to_ruby_on_rails.textile
@@ -412,6 +412,42 @@ Push to your remote:
$ git push mine my_new_branch
</shell>
+You might have cloned your forked repository into your machine and might want to add the original Rails repository as a remote instead, if that's the case here's what you have to do.
+
+In the directory you cloned your fork:
+
+<shell>
+$ git remote add rails git://github.com/rails/rails.git
+</shell>
+
+Download new commits and branches from the official repository:
+
+<shell>
+$ git fetch rails
+</shell>
+
+Merge the new content:
+
+<shell>
+$ git checkout master
+$ git rebase rails/master
+</shell>
+
+Update your fork:
+
+<shell>
+$ git push origin master
+</shell>
+
+If you want to update another branches:
+
+<shell>
+$ git checkout branch_name
+$ git rebase rails/branch_name
+$ git push origin branch_name
+</shell>
+
+
h4. Issue a Pull Request
Navigate to the Rails repository you just pushed to (e.g. https://github.com/your-user-name/rails) and press "Pull Request" in the upper right hand corner.