P
P
Pavel Gogolinsky2016-06-14 09:58:52
git
Pavel Gogolinsky, 2016-06-14 09:58:52

How to know the diff between files in git and modified copies of those files?

There is a site project. Is under the control of git. The site has been copied and modified. How to learn diff and to define these changes?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2016-06-14
@gogolinsky

"Copied" is a loose concept. If you just physically copied the file directory, then create a new "oldsite" branch in it and connect the old site folder to this branch as an origin. After that, you can compare two brunches.
If you cloned the old site with the git clone command, then just compare the two branches, or the bunch and its origin if you foolishly did not think of making a new branch

A
Andrey, 2016-06-14
@AndreyMyagkov

I don’t know if git will help here, but you can synchronize 2 directories (old and changed) in total commander - it will show different files, and you can also see the diff of each file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question