This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 225717 - accidentally deleted files with Git.
Summary: accidentally deleted files with Git.
Status: RESOLVED DUPLICATE of bug 217184
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 17:59 UTC by xlk
Modified: 2013-02-04 18:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xlk 2013-02-04 17:59:49 UTC
Product Version = NetBeans IDE 7.2 (Build 201207301726)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 21.0-b17

(original text)

des fichiers supprimés par erreur avec Git.

contexte:
j'ai un dossier nommé "modules" contenant des dossiers ou des fichiers (php ou autres).
je renomme (sous windows) "modules" en "Modules".
Git considère le dossier (ou fichier) comme renommé. windows considère le fichier comme ayant le même nom (excepté pour l'affichage).
en posix, il est sencé exister 2 fichiers. l'ancien nom et le nouveau nom.
les fichiers dont le nom du dossier parent a changé de casse est considéré comme un autre fichier créé. l'ancien nom étant à supprimer (car le chemin est différent). alors que pour windows, il s'agit du même fichier.

ma solution temporaire pour ne pas perdre de fichiers:
sauvegarder tous les fichiers (sauvegarde, ou copie).
valider le commit de suppression.
restaurer les fichiers effacés.
refaire un commit.

conséquences:
j'ai perdu l'historique.

merci d'avance

(traduction)

accidentally deleted files with Git.

context:
I have a folder called "modules" containing folders or files (php or other).
I rename (Windows) "modules" in "Modules".
Git considers the folder (or file) as renamed. Windows sees the file as having the same name (except for the display).
in posix, it is SENCE 2 files exist. the old name and the new name.
files with the name of the parent folder has changed case is seen as another file created. the former name being deleted (because the path is different). whereas for Windows, it is the same file.

my temporary solution to not lose files:
save all files (backup or copy).
commit validate the deletion.
restore deleted files.
re-commit.

consequences:
I lost history.

thank you in advance
Comment 1 Ondrej Vrabec 2013-02-04 18:15:07 UTC

*** This bug has been marked as a duplicate of bug 217184 ***