Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LytJ5-0000SV-1c for qemu-devel@nongnu.org; Tue, 28 Apr 2009 15:49:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LytJ0-0000LS-6o for qemu-devel@nongnu.org; Tue, 28 Apr 2009 15:49:30 -0400 Received: from [199.232.76.173] (port=42869 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LytIz-0000LD-Nl for qemu-devel@nongnu.org; Tue, 28 Apr 2009 15:49:25 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:37934) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LytIy-0004F7-U9 for qemu-devel@nongnu.org; Tue, 28 Apr 2009 15:49:25 -0400 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <8110443000-BeMail@laptop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [Qemu-devel] updating git tree Date: Tue, 28 Apr 2009 21:49:01 +0200 References: <8110443000-BeMail@laptop> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Fran=E7ois_Revol?= Cc: qemu-devel@nongnu.org Am 28.04.2009 um 21:25 schrieb Fran=E7ois Revol: >>> you can use: >>> >>> git diff > tmp.patch >>> patch -R -p1 < tmp.patch >>> git pull >>> patch -p1 < tmp.patch >> >> Or to stick with a `git` workflow, you can do: >> >> git commit -a -m "Description of local change" >> git pull > > So, was it too hard to tell it in the first place ? ;) > > Though it doesn't like me... > I have a file to remove, one to add, and I don't want to commit all =20= > the > changes at once... > > I tried git commit -i (it wanted it) -m "Merge usb-wacom into usb-hid" > hw/usb-hid.c Makefile hw/usb-wacom.c > > but it didn't like usb-wacom.c being already gone by git rm ... > + this stupid thing commited the popenaudio.c I wanted to leave for > another commit despite not using -a... > > Plus it used the local hostname to make my email in the commit, and I > couldn't find git-config as I saw it somewhere to change it... > > This is beyond logic. > I thought it was supposed to be simpler but I'll have to git clone > again, apply each diff and commit them separately... :( To commit individual files, use `git add file1.c`, then `git commit` =20 without -a. You can check `git status` for what'll get committed. While individual commands are referred to as git-svn, for instance, =20 you need to call them without dash since v1.6, e.g., `git svn`. So `git config --global user.email revol@free.fr` should do the trick =20= iirc. But does it matter locally? ;) No need to clone again. To remove the last commit, simply do `git =20 reset --hard HEAD^` (one accent circonflexe per commit backwards from =20= HEAD). Andreas=