-3

Let me explain. For some time I developed some code. Now I want to separate a part and make it open-source. My main problem is to save all commit history, which concerns that files.

kyb
  • 7,233
  • 5
  • 52
  • 105

2 Answers2

2

What I suspect you're asking is how to make a subdirectory (or just a set of files) into its own repository. If that is the case then you're asking a question that has been answered many times before:

and is well documented and googlable:

which goes against the advice on the "How to ask" help page and makes this a candidate for being closed as a duplicate.

Community
  • 1
  • 1
nonsensickle
  • 4,438
  • 2
  • 34
  • 61
0

You can use git blame and save commit history to a file, like:

git blame <full_file_path> > blame_file.txt
M.Sharma
  • 224
  • 1
  • 7