Re: how do you "force a pull"?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Watson
Date: Saturday, August 25, 2007 - 4:37 am

The commit you pulled should still be in your local repository (repo2),
unless you've done something to deliberately remove it.

If you're using the default repository setup when cloning, then master
branch of repo1 should be available as origin/master, so you can do the
following:

$ git reset --hard origin/master

or log:

$ git log origin/master

If you want to see all your branches, local or remote:

$ git branch -r

Note that you shouldn't checkout origin/master and work on it, but rather
you'll want to make a branch, and work on that:

$ git co -b fancy_branch origin/master

You may be getting the "cannot merge message" if you have uncommitted
changes, as git won't let you merge when the working copy is changed.
git-pull is really git-fetch + git-merge.

On Sat, Aug 25, 2007 at 07:19:46AM -0400, Jing Xue wrote:

-- 
Dave Watson
-
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:
how do you "force a pull"?, Jing Xue, (Sat Aug 25, 4:19 am)
Re: how do you "force a pull"?, Dan Chokola, (Sat Aug 25, 4:31 am)
Re: how do you "force a pull"?, David Watson, (Sat Aug 25, 4:37 am)
Re: how do you "force a pull"?, Jing Xue, (Sat Aug 25, 4:53 am)
Re: how do you "force a pull"?, Randal L. Schwartz, (Sat Aug 25, 6:19 am)