On 10/24/25 04:26, Johannes Truschnigg via fpc-other wrote:
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...

Yes, absolutely - just installed the new NAS, put the old drive on a temporary mount point, and did a simple copy.


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.


Thanks, I will give it a try.


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.


I was just being lazy, I have a script that updates the various repos and it's much easier to edit a copy of that than to find all the URLs again. :)

Thanks for the help (also Tomas)

Brian.

_______________________________________________
fpc-other maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-other

Reply via email to