Search Results for “#code”

Page 1 of 1

Mac Pro Tip: When copying a git repository directory to your network file server using rsync, try this:

rsync -brtlvP --chmod=Fu+w --delete-before Code/MyProject/ /Volumes/MyServer/Code/MyProject/

This will copy the files with timestamps but no other attributes, and will also give the file owner (you) full access rights. This ensures that you (or even Windows users with access rights) can overwrite the directory contents later because local read-only files (e.g. in the .git directory) won't be read-only on the server. You can also change the chmod option to customize the rights, like ensuring everyone has full control.

#apple #macos #windows #code #developer #YOUREWELCOME

Jun 14, 2023


Copyright © 2024 Michael Argentini. All rights reserved.