From 478972be5b54f75233a525923eef944b3ba6a640 Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch> Date: Thu, 12 Sep 2024 17:04:51 +0200 Subject: [PATCH] Update corner_cases: add recommendation about git --- docs/advanced/corner_cases.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/advanced/corner_cases.md b/docs/advanced/corner_cases.md index f5931d3..d6aa5d0 100644 --- a/docs/advanced/corner_cases.md +++ b/docs/advanced/corner_cases.md @@ -18,3 +18,11 @@ This is a consequence of how Microsoft Office manipulates files on save operatio * Use the online Web editors or the Desktop sync client to edit Microsoft Office files. * If remote Windows access must be ensured, share the containing folder instead. Note that if remote Windows access is required also for the sharee of your file, you must share the containing folder, otherwise your collaborator won't be able to navigate to the file. + + +## Git and EOS/CERNBox + +If you use `git` on a folder located in `/eos`, e.g. from `lxplus.cern.ch`, chances are that the repository gets corrupted, and you cannot delete files or perform normal git operations. Likewise, if you use `git` on a local folder and then you synchronize it, the remote copy is not usable as a git repository. + +In both cases, the recommendation is to refrain from using `git` in an EOS-mounted location, or limit it to read-only (e.g. checkout, pull) operations. Git is extremely powerful but also particularly demanding on the filesystem, and it is best used on locally mounted storage. + -- GitLab