git server information or ascii on remote operations (clone)

点点圈 提交于 2019-12-05 02:32:53

问题


How can I configure my git server to display additional information or ascii art on remote operations such as clone ?

An example would be on this page and is shown below.

F:\>git clone https://myserver/tfs/DefaultCollection/_git/Proj 
Username for 'https://myserver': domain\username 
Password for 'https://domain\username@myserver': 
remote: 
remote:                    fTfs 
remote:                  fSSSSSSSs 
remote:                fSSSSSSSSSS 
remote: TSSf         fSSSSSSSSSSSS 
remote: SSSSSF     fSSSSSSST SSSSS 
remote: SSfSSSSSsfSSSSSSSt   SSSSS 
remote: SS  tSSSSSSSSSs      SSSSS 
remote: SS   fSSSSSSST       SSSSS 
remote: SS fSSSSSFSSSSSSf    SSSSS 
remote: SSSSSST    FSSSSSSFt SSSSS 
remote: SSSSt        FSSSSSSSSSSSS 
remote:                FSSSSSSSSSS 
remote:                  FSSSSSSs 
remote:                    FSFs    (TM) 
remote: 
remote:  Microsoft (R) Visual Studio (R) Team Foundation Server 
remote: 
Receiving objects: 100% (6781/6781), 47.12 MiB | 32.56 MiB/s, done. 
Resolving deltas: 100% (4553/4553), done. 
Checking connectivity... done

Thanks in advance for your help.


回答1:


It could be as simple as a git wrapper on the rmeote server which would:

  • detect the clone operation
  • echo the extra-information first (stdout or stderr should be forwarded back to the client), like your ascii-art.
  • call the actual git clone.


来源:https://stackoverflow.com/questions/27343463/git-server-information-or-ascii-on-remote-operations-clone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!