0

Hello thanks for reading.

While buiding a private application for a client, I developed a small utility alongside within the same repo to help with some server spoofing. Now I have reached a point where the maturity of this tool is very solid and I can see many uses for it outside in the general public.

I am interested in 'extracting' the full history of just the few files needed for this utility because I would like to show the history and length at which it evolved - that would be interested to me. However my biggest caveat is that none of the clients application code would be shared, since this is private. So I couldn't just delete that stuff and fork as anyone could just checkout an older commit before the deletion and have everything.

Is it possible to do this?

Hugo y
  • 1,263
  • 9
  • 19
stupidkid
  • 412
  • 1
  • 6
  • 17

1 Answers1

-1

I am interested in 'extracting' the full history of just the few files needed for this utility because I would like to show the history and length at which it evolved - that would be interested to me.

I use this git log --follow -- path/to/file to get the complete git history for a specific file.

Edit: With git log --follow -p -- path/to/file you can also show the diff for each commit.

clinical
  • 588
  • 4
  • 17