From 6e4eaa1e31846f42fa50cee48b73bf0079e9aba6 Mon Sep 17 00:00:00 2001 From: tekkub Date: Mon, 27 Jul 2009 01:51:05 -0600 Subject: Make pretty console pre blocks --- _posts/2009-06-16-forking.textile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '_posts/2009-06-16-forking.textile') diff --git a/_posts/2009-06-16-forking.textile b/_posts/2009-06-16-forking.textile index b65c4c8..156bda2 100644 --- a/_posts/2009-06-16-forking.textile +++ b/_posts/2009-06-16-forking.textile @@ -15,10 +15,10 @@ h2. Setting up Naturally, the first thing you must do is create your fork. To do this, you simply click the !http://github.com/images/modules/repos/fork_button.png! button on the project's page. When the fork has completed, you will be presented with your new repo information. Now you need to clone the fork. Make sure you use the "Your Clone URL" and *not* the "Public Clone URL" -
$ git clone git@github.com:billyanyteen/github-services.git
+
$ git clone git@github.com:billyanyteen/github-services.git
Once the clone is complete your repo will have a remote named "origin" that points to your fork on github. Don't let the name confuse you, this *does not* point to the original repo you forked from. To help you keep track of that repo we will add another remote named "upstream" -
$ cd github-services
+
$ cd github-services
 $ git remote add upstream git://github.com/pjhyett/github-services.git
 $ git fetch upstream
@@ -27,7 +27,7 @@ Note that we used the public clone URL for upstream, so we can't push changes di h2. Pushing your changes Now that we've got our fork, we need to make a few changes and commit them locally. Once you've done this, it's time to push your updated branch. -
$ git push origin master
+
$ git push origin master
After you've pushed your commit(s) you need to inform the project owner of the changes so they can pull them into their repo. From your project's page, click the !http://github.com/images/modules/repos/pull_request_button.png! button. Fill in a note and pick who to send the request to. In large projects it is important that you *do not* send the request to every person who's touched the project. Make sure you're only sending to the people who care, the user(s) that manage the core project repo. @@ -36,10 +36,10 @@ _Note that some projects do not accept pull requests. Make sure you submit your h2. Pulling in upstream changes Some time has passed, the upstream repo has changed and you want to update your fork before you submit a new patch. There are two ways to do this: -
$ git fetch upstream master
+
$ git fetch upstream master
 $ git merge upstream/master
-
$ git pull upstream master
+
$ git pull upstream master
@git pull@ is a more direct way, but the merge it performs can be confusing if the user doesn't expect it and a merge conflict results. @git fetch@ will also grab all branches, where @git pull@ will only grab the one specified. -- cgit v1.3.1