B
B
BelBES2016-05-12 16:08:41
git
BelBES, 2016-05-12 16:08:41

How to get git history for given files?

Hello everyone, I have
the following problem: I have a C++ project that uses the git version control system. And there is some extension of this project, which is developed separately, lies in a separate repository and is a set of source codes with its own history. These extensions are rolled by copying them to the folder with the source project. As long as these two repositories do not overlap in files, then everything works fine, but there are also files in the extension that are modified versions of the corresponding files from the main turnip ... and I would like to store a global history of changes for them.
This begs the question: is there any way in git to export the history for given files from a repository in some form?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Prilepa, 2016-05-12
@OAPrilepa

In phpStorm, you can run the git >> show history command on any file.
So the possibility exists.
Googled, here are the guys discussing how to do it from the console:
stackoverflow.com/questions/278192/view-the-change...
Child turnips are generally better as a git submodule to connect, there will be fewer problems with updates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question