[fpc-other] (Probably trivial) git help, please

Johannes Truschnigg johannes at truschnigg.info
Fri Oct 24 10:26:25 CEST 2025


Hi Brian,

sounds odd, since git doesn't care about filesystem metadata of the files it
tracks - it just cares about their content. So if you did a 1:1 copy of the
repository directory onto another drive, unless something mangled the data
during that copy, not a thing should have changed from git's perspective...

If you are 100% certain you don't have any local modifications to files
tracked by git that warrant preserving (you can check that with `git diff`,
which shows you the changes made from the presently commited state), the
easiest way out probably is to `git reset --hard`, which will make git restore
all files it tracks to exactly the content as of the commit you are pointed
at.

Of course, If that doesn't work or give you any other kind of trouble, you can
always just clone the source repository into another brand new location, and
resume your activities from there.

Hth! :)

-- 
with best regards:
- Johannes Truschnigg ( johannes at truschnigg.info )

www:   https://johannes.truschnigg.info/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-other/attachments/20251024/c4979f71/attachment.sig>


More information about the fpc-other mailing list