Home » Git » Programmatically access git data

Programmatically access git data

Posted by: admin November 22, 2021 Leave a comment

Questions:

How to retrieve file, commit etc. info from bare git repo? When I have created a git server using git init --bare command there are branches/ config description HEAD hooks/ info/ objects/ refs/ created by default. How can I retrieve file list or their content , commit info from server side ? it will be really helpful if the solution or example will be in nodejs or python .

Answers: