aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorRafael Magana <raf.magana@gmail.com>2012-05-28 21:46:52 -0500
committerRafael Magana <raf.magana@gmail.com>2012-05-28 21:46:52 -0500
commit2c4da97b19b04fae00b024d9fdc111a866f7e445 (patch)
treeb1e2720218497de63fc7bf3e189ef4f2838384a5 /guides/source
parentcfe731c26bcf583d4fa99a4ac67bb3963ccfc011 (diff)
downloadrails-2c4da97b19b04fae00b024d9fdc111a866f7e445.tar.gz
rails-2c4da97b19b04fae00b024d9fdc111a866f7e445.tar.bz2
rails-2c4da97b19b04fae00b024d9fdc111a866f7e445.zip
[contributing guide] add instructions to update fork [ci skip]
Diffstat (limited to 'guides/source')
-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.