Post ANSb7MkuffIe8skr56 by mfru@mastodon.social
 (DIR) More posts by mfru@mastodon.social
 (DIR) Post #ANSb7MkuffIe8skr56 by mfru@mastodon.social
       2022-09-11T16:17:09Z
       
       0 likes, 0 repeats
       
       TIL: git mv keeps the history of a file when renaming.
       
 (DIR) Post #ANSb7NFkozyBgXBU9Y by rysiek@mastodon.technology
       2022-09-11T16:19:36Z
       
       1 likes, 0 repeats
       
       @mfru git's even smarter than that. If you move a file using other means (as in, not with `git mv`) without making substantial changes to the file, once you `git add` the new file, git figures out it was moved and keeps history.