2

I have a remote git repository that various people pull from using ssh. I would like to disable the git repository but provide some sort of friendly explanation whenever there is a git clone or git pull. For example, "This git repository is no longer being maintained. Please use the repository at XYZ in the future".

Is there a (relatively) easy way to do this?

rlandster
  • 7,294
  • 14
  • 58
  • 96

1 Answers1

0

If you are not using GitLab, and its broadcast message feature, then you could make ssh calls a forced command which would:

  • check which url is requested
  • display your message for a specific repo
  • transfer to the actual git command for any other repo.

That supposes you do control the server which hosts the remote repo accessed through ssh.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250