2016-07-10 31 views
6

Quando ho clonare un repository dai miei visivi Servizi Studio Team (era Visual Studio online) conto ottengo un messaggio nella console durante la clonazione in sé:Git: messaggio vedi quando la clonazione

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. 

mi piacerebbe fare una cosa simile nel mio server Git. Come posso inviare un messaggio da stampare durante la clonazione?

+0

qual è il tuo server git? git puro? butbucket? GitHub? gitolite? gitlab? ecc ... quale versione? usi ssh? –

+0

È un server git puro su cui gira Ubuntu. Io uso ssh. – Jepessen

risposta

2

Non c'è un po 'di gancio che è possibile utilizzare, ma nel caso in cui si utilizza ssh è possibile stampare il banner a stderr utilizzando questo codice:

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

in uno dei seguenti file dipende dal vostro uso ssh:

  • /etc/sshrc
  • ~/.ssh/rc
+0

Quindi non è una funzionalità git, ma una ssh ... – Jepessen

+0

@Jepessen sembra. Non ho trovato nulla nella documentazione di git –