-1

I have a repository whenever I do commit the log(changelog) file needs to save those by automatic can anyone help me, please?

I tried with log comments but it's by manual and writes into the output file.

Ashok
  • 1
  • 2

1 Answers1

0

Given those caveats Keep Git Reflog Indefinitely? you could make a pre commit hook in your repository, which would just do something like git reflog > reflog.log; git add reflog.log. That adds the contents of reflog to reflog.log and adds it to index ready to be commited. But keep in mind, that the last commit would not be in reflog.log. Your reflog.log will always be one commit behind.

Filip Halaxa
  • 728
  • 6
  • 13