Git clone verbose mode – show each incoming object

erkfel picture erkfel · Jul 11, 2013 · Viewed 45.3k times · Source

I’m wondering that git clone --verbose is not very verbose. The output of executing the command is the following:

$ git clone --verbose <repo>
remote: Counting objects: 184, done
remote: Finding sources: 100% (184/184)
remote: Total 184 (delta 66), reused 183 (delta 66)
Receiving objects: 100% (184/184), 18.90 KiB, done.
Resolving deltas: 100% (66/66), done. 

The expected behaviour is to see the list of the received objects one by one. Is that possible using some other options?

Answer

Nayagam picture Nayagam · Mar 1, 2018

I accept @Lekensteyn answer.

If you want to trace git remote commands,add following environmental variables into your terminal.This helps you to peek into what is running behind the scenes of a git command.

export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1

Reference:https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables

Sample Cloning Result after exportenter image description here

enter image description here

enter image description here enter image description here