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

Re: reverting changes

2013-04-04 Thread Junio C Hamano
Thiago Farina tfrans...@gmail.com 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)

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. I

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

2012-11-08 Thread McKown, John
-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 to the working directory 1) is this the proper forum

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 john.mck...@healthmarkets.com 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

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

2012-11-08 Thread Andy Hawkins
Hi, In article a6b9336cdb62bb46b9f8708e686a7ea0115baa1...@nrhmms8p02.uicnrh.dom, McKown, Johnjohn.mck...@healthmarkets.com 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