1

I worked in a project some time ago that required me to develop a separated tool to make this project easier, and everything is in the same git repository.

I would like to select only a few commits that include changes to certain files (for example tool.c, tool.h) and add them to a new repository so that I can continue to improev this tool and have the history of changes.

Is that possible and if yes, how do I do it?

Mikael
  • 969
  • 12
  • 24
  • Perhaps a [duplicate](https://stackoverflow.com/q/7375528/5784831)? – Christoph Mar 03 '18 at 18:44
  • Looks likely, OP, do you want the entire history for the selected files, or is there some need to specify "just these commits, ignore all those others that thouch these files"? – jthill Mar 03 '18 at 19:06
  • @jthill, my intention is to select all commits that change the selected files, ignoring changes to other files if these commits happen to do it. – Mikael Mar 03 '18 at 19:34
  • @Christoph, thanks, I tried to search but didn't see this question, will read and see if it fits my case. – Mikael Mar 03 '18 at 19:35
  • I've marked my question as duplicate because I've found exactly what I want following links from the suggestion above, thanks you both. – Mikael Mar 03 '18 at 19:37

0 Answers0