Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 GIT 日志有疑问。是否可以在 GIT 或 OS shell 中查看 git-clone 历史记录?在哪里可以找到克隆和下载 GIT 存储库的历史记录以及有关时间、目标的信息。知识产权?
'git clone' 只提供数据的副本,它不会对 repo 进行任何更改,即记录下载历史记录。但是,我假设 git 是通过某种特定方式访问的,例如通过 SSH 或 http/https。然后,您可以使用可以访问 git 的服务来获取您需要的数据。因此,他们应该能够收集、存储和提供给您。
例如,对于 http/https,您可以使用 Web 服务器的日志(按 URL 过滤)。对于 ssh,您可以last由克隆 repo 的用户使用。等等。
last