H
H
hckn2018-08-07 23:44:18
git
hckn, 2018-08-07 23:44:18

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

2 answer(s)
S
SagePtr, 2018-08-07
@hckn

Alternatively, pack in some 7z with all attributes preserved, and unpack on another machine

G
GavriKos, 2018-08-08
@GavriKos

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 question

Ask a Question

731 491 924 answers to any question