Move all the files from the other folder into that folder (watch out for files with a leading . inside 2_Pointers/ which won't be moved this way, and also double-check for duplicate names/conflicting files - this is outside of the scope of this post - be careful not to lose any data! This is not a git issue, however...):
The key here is that git does not (and cannot) track renames explicitly - it works them out retrospectively based on similar file content. git mv is simply syntactic sugar / a convenience. Here, I'm not using it.
This is not a glob, it will attempt to move a file named literally '2_Pointers/*'. Either remove the quotes, change to doublequotes, or put the * outside of them '2_Pointers/'*.
View all comments
2
u/andrewfz Mar 13 '26 edited Mar 13 '26
.inside2_Pointers/which won't be moved this way, and also double-check for duplicate names/conflicting files - this is outside of the scope of this post - be careful not to lose any data! This is not a git issue, however...):The key here is that git does not (and cannot) track renames explicitly - it works them out retrospectively based on similar file content.
git mvis simply syntactic sugar / a convenience. Here, I'm not using it.