Listing repository directories

原文:https://docs.gitlab.com/ee/raketasks/list_repos.html

Listing repository directories

您可以在 GitLab 管理的磁盘上打印所有 Git 存储库的列表.

要打印列表,请运行以下命令:

# Omnibus
sudo gitlab-rake gitlab:list_repos

# Source
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:list_repos RAILS_ENV=production 

注意:结果使用 GitLab Rails 应用程序的默认顺序.

Limit search results

要仅列出具有最近活动的项目,请传递带有SINCE环境变量的日期. 您指定的时间由 Rails TimeZone#parse 函数解析 .

# Omnibus
sudo gitlab-rake gitlab:list_repos SINCE='Sep 1 2015'

# Source
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:list_repos RAILS_ENV=production SINCE='Sep 1 2015' 
Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2021-03-27 13:48:25

results matching ""

    No results matching ""