Re: Workflow example for remote repository use of GIT

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Shawn Pearce
Date: Tuesday, November 28, 2006 - 8:25 am

Sean Kelley <sean.v.kelley@gmail.com> wrote:
...

That can be streamlined slightly:

  git fetch
  git checkout -b <new-topic> origin

as fetch would by default download from remote 'origin' and update
the tracking branches.  And of course developers may not want to
create their new branch from origin, e.g. if they are doing a bug
fix to an earlier release of the product.  I think its a good habit
to be in to always specify the origination point for a branch when
creating it.
 

Sure, that's CVS-like and rather simple.
 

Yes, that works and will get you a merge message like

  Merge branch 'my-topic' into master

which is probably what you want if there actually was a merge.
If there wasn't (its just a fast-forward) then you won't get the
merge message.  It also has the nice property that the "trunk (if
there is such a thing)" is the first parent in every merge, with
the topic(s) in the other parents.

Though I tend to just pull the origin into the current branch
and push that directly, e.g.:

  git pull origin master
  git push origin HEAD:master

-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Workflow example for remote repository use of GIT, Sean Kelley, (Tue Nov 28, 8:08 am)
Re: Workflow example for remote repository use of GIT, Johannes Schindelin, (Tue Nov 28, 8:15 am)
Re: Workflow example for remote repository use of GIT, Shawn Pearce, (Tue Nov 28, 8:25 am)