Re: reverting changes

2013-04-04 Thread Junio C Hamano
Thiago Farina writes: > When I want to revert a change to a file that is already committed > what is the best way? > > The way I found was: > > $ git checkout HEAD /path/to/my/file > $ git reset HEAD /path/to/my/file > > Is this the canonical/best way or there other (easier-faster) ways? If the

reverting changes

2013-04-04 Thread Thiago Farina
Hi, When I want to revert a change to a file that is already committed what is the best way? The way I found was: $ git checkout HEAD /path/to/my/file $ git reset HEAD /path/to/my/file Is this the canonical/best way or there other (easier-faster) ways? Thanks, -- To unsubscribe from this list:

Re: three questions: proper forum? & reverting changes to the working directory

2012-11-08 Thread Andy Hawkins
Hi, In article , McKown, John wrote: > 1) is this the proper forum for asking general git usage questions, such > as "how to"? If not, what is? I'd say that here is fine. #git on freenode is also a good source of advice. > 2) I am unsure that I did things the "proper" way. I have a

Re: three questions: proper forum? & reverting changes to the working directory

2012-11-08 Thread Konstantin Khomoutov
On Thu, 8 Nov 2012 08:26:22 -0600 "McKown, John" wrote: > 1) is this the proper forum for asking general git usage questions, > such as "how to"? If not, what is? This list is okay for the general usage questions. But since it's the place where the development questions are discussed as well, an

RE: three questions: proper forum? & reverting changes to the working directory

2012-11-08 Thread McKown, John
ance Company.SM > -Original Message- > From: git-ow...@vger.kernel.org [mailto:git-ow...@vger.kernel.org] On > Behalf Of McKown, John > Sent: Thursday, November 08, 2012 8:26 AM > To: 'git@vger.kernel.org' > Subject: three questions: proper forum? & reverting changes

three questions: proper forum? & reverting changes to the working directory

2012-11-08 Thread McKown, John
1) is this the proper forum for asking general git usage questions, such as "how to"? If not, what is? 2) I am unsure that I did things the "proper" way. I have a git maintained subdirectory. I made some changes and saved them in the working directory, but did not "git add" or "git commit" them