Re: (beginner) git rm

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tomas Carnecky <tom@...>
Cc: Zabre <427@...>, <git@...>
Date: Wednesday, January 28, 2009 - 9:03 am

On Wed, Jan 28, 2009 at 01:19:13PM +0100, Tomas Carnecky wrote:

I use this command enough that I have this defined as an alias in my
~/.gitconfig file.  Try running this command:

	git config --global alias.revert-file "checkout HEAD --"

Now you will be able to do this:

	git revert-file d.txt

This is also useful when I've edited d.txt, and decided that I didn't
go about it the right away, and so I want to revert my edits.

						- Ted

--
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:
(beginner) git rm, Zabre, (Wed Jan 28, 6:11 am)
Re: (beginner) git rm, Peter Krefting, (Wed Jan 28, 6:36 am)
Re: (beginner) git rm, Zabre, (Wed Jan 28, 7:05 am)
Re: (beginner) git rm, Tomas Carnecky, (Wed Jan 28, 7:37 am)
Re: (beginner) git rm, Zabre, (Wed Jan 28, 8:00 am)
Re: (beginner) git rm, Tomas Carnecky, (Wed Jan 28, 8:19 am)
Re: (beginner) git rm, Zabre, (Wed Jan 28, 2:23 pm)
Re: (beginner) git rm, Björn, (Wed Jan 28, 4:17 pm)
Re: (beginner) git rm, Zabre, (Wed Jan 28, 4:42 pm)
Re: (beginner) git rm, Junio C Hamano, (Wed Jan 28, 5:29 pm)
Re: (beginner) git rm, Björn, (Wed Jan 28, 6:13 pm)
Re: (beginner) git rm, Junio C Hamano, (Wed Jan 28, 6:33 pm)
Re: (beginner) git rm, Zabre, (Wed Jan 28, 5:05 pm)
Re: (beginner) git rm, Theodore Tso, (Wed Jan 28, 9:03 am)
Re: (beginner) git rm, Zabre, (Wed Jan 28, 2:25 pm)