Re: (beginner) git rm

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Wednesday, January 28, 2009 - 7:05 am

Peter Krefting wrote:

Thank you Peter.
I've just done a hard reset and redid it the right way. It worked as
expected.

$ git checkout new
$ rm d.txt
$ git rm d.txt
$ git commit

I am a little bit confused regarding rm : first I did a simple "rm" but git
would not commit, so I had to "git rm" for the index to be modified and have
something to commit. Is this the right way to do things?

Another question would be : instead of doing a hard reset (I might have
other changes in the index that I don't want to loose) is it possible to
remove only one "delete action" from the index?
-- 
View this message in context: http://n2.nabble.com/%28beginner%29-git-rm-tp2231416p2231622.html
Sent from the git mailing list archive at Nabble.com.

--
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)