Git: show message when cloned

When I cloned a repository from my Visual Studio Team Services account (was Visual Studio Online), I get a message in the console during cloning:

Cloning into 'thirdparty/boost'... remote: remote: vSTs remote: vSTSVSTSv remote: vSTSVSTSVST remote: VSTS vSTSVSTSVSTSV remote: VSTSVS vSTSVSTSV STSVS remote: VSTSVSTSvsTSVSTSVS TSVST remote: VS tSVSTSVSTSv STSVS remote: VS tSVSTSVST SVSTS remote: VS tSVSTSVSTSVSts VSTSV remote: VSTSVST SVSTSVSTs VSTSV remote: VSTSv STSVSTSVSTSVS remote: VSTSVSTSVST remote: VSTSVSTs remote: VSTs (TM) remote: remote: Microsoft (R) Visual Studio (R) Team Services remote: Receiving objects: 100% (13740/13740), 736.66 MiB | 278.00 KiB/s, done. 

I would like to do similar on my git server. How can I send a printable message when cloning?

+6
source share
1 answer

There is no hook you can use, but if you use ssh , you can print the banner in stderr using this code:

 cat 1>&2 << "banner" remote: _ _ _ _ __ __ _ _ remote: | | | | ___| | | ___ \ \ / /__ _ __| | __| | remote: | |_| |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | remote: | _ | __/ | | (_) | \ VV / (_) | | | | (_| | remote: |_| |_|\___|_|_|\___/ \_/\_/ \___/|_| |_|\__,_| banner 

in one of the following files depends on your use of ssh:

  • /etc/sshrc
  • ~/.ssh/rc
+2
source

All Articles