I would like to know how git-receive-pack works, because I have quite literally no idea what happens with it. Can anyone shed some light on this mystery?
I would like to know how git-receive-pack works, because I have quite literally no
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to the man page:
Even the person writing the man page thinks it’s confusing, so don’t blame yourself it you don’t understand it!
Basically, this is part of the code that receives commits on the remote server that were packed up and sent by
send-packon your local machine when you do agit push.It’s not important to understand the specifics behind it — as the docs say, it’s not a command you should ever actually type.
If you’re really deeply interested in how it works internally, a couple of good places to start might be:
The Wikipedia Page on Git (Software), The Git Website itself, or The free book, Pro Git
Or, you can always go look the ‘c’ code up for that command in the source code right here on GitHub.
http://git-scm.com/