Answer the question
In order to leave comments, you need to log in
What is the correct way to move a git project to another machine?
Situation: in the working directory of the project there are 5 repositories (front, server, etc.), in addition to all other project files. How to transfer all this stuff to another machine? Well, if you just take and copy, then an error occurs, git thinks that all files have been changed. I googled the solution git config core.filemode false
. But how right is this? Manually cloning each repository from a remote git is pointless, since I can have 10 such projects, 5 repositories each. It is convenient to manually transfer (preliminarily synchronizing with a remote server). But what's next? How right? How are you doing?
Answer the question
In order to leave comments, you need to log in
Alternatively, pack in some 7z with all attributes preserved, and unpack on another machine
That's right - clone the repositories, and not suffer from nonsense in the form of copying turnips from machine to machine with all the garbage and so on. Cloning a turnip is 1 command, I can’t imagine what could be even simpler. At least 100 raps - we shove it into a batch file and everything will automatically bend where it needs to.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question