Skip to content

Instantly share code, notes, and snippets.

@neoeinstein
Created April 26, 2009 20:10
Show Gist options
  • Save neoeinstein/102157 to your computer and use it in GitHub Desktop.
Save neoeinstein/102157 to your computer and use it in GitHub Desktop.
diff --git a/doc/Howto-thandy.txt b/doc/Howto-thandy.txt
index 98ee4ee..f542ca5 100644
--- a/doc/Howto-thandy.txt
+++ b/doc/Howto-thandy.txt
@@ -234,6 +234,15 @@ history, and the head of the 'master' branch now just point
s at them.
If there are changes, git will try to merge for you.
+`git pull` is essentially just `git fetch` followed by `git merge`. If you
+already have work that is based on a remote branch, you may want to rebase
+instead of letting `git merge` create an implicit merge commit:
+
+-----
+% git fetch origin
+% git rebase origin/master
+-----
+
Now, what should we do about our local ftp branch? It's still based on
the pre-pull version. We have a few choices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment