Re: git-merge: need a tap with the cluestick, please

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Shawn O. Pearce
Date: Thursday, October 18, 2007 - 4:35 pm

walt <wa1ter@myrealbox.com> wrote:

How about putting the ignore for your obj dir in your own private
exclude file:

  $ echo /obj >>.git/info/exclude

will cause Git to ignore an "obj" directory if it is found in the
top level of the repository.  And since this file is not actually
tracked as part of the repository it will apply to all branches
in this repository and won't cause merge conflicts when upstream
makes changes to .gitignore.

As for aborting a merge that you have gotten into the middle of
decided you want to get out of, use `git reset --hard`.  That will
throw away all of the unmerged state and put you back to your
pre-merge state.

-- 
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:
Re: git-merge: need a tap with the cluestick, please, Shawn O. Pearce, (Thu Oct 18, 4:35 pm)