What's the best way to rsync two directories with git repositories?
0
votes
1
answer
2026
views
I have two machines that I use for work. One is the local machine located at my home, and the other is the remote machine located at my office.
I have a "development" folder in which I keep all my work. It contains various folders of LaTeX documents, Python projects, etc. Most of these folders are git repositories themselves. I need to be able to switch between the machines and pick up my development work as and when I require it depending upon my physical presence at home or office.
What's the best way to do rsync of this "development" folder? I did:
rsync -zvaP /media/shihab/development shihab@remote:/media/shihab/OSDisk/development
and
rsync -zvaP shihab@remote:/media/shihab/OSDisk/development /media/shihab/development
but I ended up messing up my file and folder permissions and groups. How do established programmers manage switching between their machines?
Asked by Shihab Khan
(123 rep)
Jun 22, 2022, 01:23 AM
Last activity: Jun 9, 2025, 09:02 PM
Last activity: Jun 9, 2025, 09:02 PM