Re: [translations] Re: how to remove a file |
[ Thread Index |
Date Index
| More lilynet.net/translations Archives
]
- To: Federico Bruni <fedelogy@xxxxxxxxx>
- Subject: Re: [translations] Re: how to remove a file
- From: Francisco Vila <paconet.org@xxxxxxxxx>
- Date: Sun, 6 May 2012 21:05:49 +0200
- Cc: LilyPond Translation <translations@xxxxxxxxxxx>, Lily-Devel List <lilypond-devel@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bZiPc1QEbUOKBWvFmcTpiP9hD34iH/CZhueyCMteFvo=; b=JIDE7IzjXBEVgDs6Ni0OIFClOCun9svNCXOi3bnKZHhyWmTCY9YdrOg2RiL71uFKaj I/TSeZAcIMlhoKbG3YEn/d7k4OBQUOTJZHufGxKCedYdybOnlMRgHDEsDNIYQ4yeExKv E0AYYmkfN34KOiRdbf3WyKSPDAZ1h/2xJ+ZPDN1xIyyCbyfPb3gdCfIGAmGDBgk4MpK3 4Q1CbKiVhlZp190goLwOHyfOVt6QIGCGjghBELwambXL/xjVSKZGGAbvKpgNsIFcQ+uI CwNufKR1UfO9FYuCeLN8TOYbf6dhQtObTz1wIpeTLPBaoxU2CjU4CIJho8Ac+Fa69oLv ZV8g==
2012/5/6 Federico Bruni <fedelogy@xxxxxxxxx>:
> I'm putting -devel in CC.
> Sorry for pushing, I'm in a hurry: I'd like to send the patches within
> tonight.
>
> Il 06/05/2012 15:53, Federico Bruni ha scritto:
>
>> Hi,
>>
>> I have to remove the .texidoc file of a snippet which has been removed:
>>
>> diff --git
>> a/Documentation/snippets/piano-template-with-centered-dynamics.ly
>> b/Documentation/snippets/piano-template-with-centered-dynamics.ly
>> deleted file mode 100644
>> index f56fc58..0000000
>> --- a/Documentation/snippets/piano-template-with-centered-dynamics.ly
>> +++ /dev/null
>>
>>
>> I wonder if I should use 'rm' or 'git rm'.
>> I know that the difference is that rm keeps the file in the git index,
>> while git rm removes it both from index and working copy.
>> I think that I should use git rm, but I prefer asking as I have a poor
>> understanding of git.
use git rm, otherwise we are tracking an empty file. We want do not
track it anymore.
> I made a try:
>
> $ git rm
> Documentation/it/texidocs/piano-template-with-centered-dynamics.texidoc
> error:
> 'Documentation/it/texidocs/piano-template-with-centered-dynamics.texidoc'
> has local modifications
> (use --cached to keep the file, or -f to force removal)
>
> What's the recommended method?
either use -f or:
git checkout HEAD
Documentation/it/texidocs/piano-template-with-centered-dynamics.texidoc
git rm Documentation/it/texidocs/piano-template-with-centered-dynamics.texidoc
The first line makes the file to be as it was before you changed it
--
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com