Describe what happens on the wire during `git push` over smart HTTP.
AdvancedConceptConflicts, remotes, fetch, pull and push
Answer
The client asks info/refs?service=git-receive-pack, receives the server's ref advertisement with capabilities, computes the objects the server lacks, and sends commands (old SHA, new SHA, ref) followed by a packfile. The server's receive-pack runs hooks (pre-receive, update), writes objects and updates refs, then reports per-ref status.
More on Conflicts, remotes, fetch, pull and push
What do conflict markers look like and how do you resolve them?BeginnerWhat is `merge.conflictStyle=zdiff3` and why use it?IntermediateHow do you quickly take one side's version for a conflicted file?IntermediateWhat are stages 1, 2 and 3 in the index during a conflict?AdvancedHow do you see what a merge conflict is about before resolving?IntermediateWhat is the difference between `git fetch` and `git pull`?Beginner