域名已变更 请手动修改文章中域名指向carlzeng.com

Global Search file content in Gitlab repositories, search across repositories, search across all files

How Global Search file content in Gitlab repositories(search across repositories)?

There is an existing answer to it, we can file the source code here  https://github.com/phillipj/gitlab-search

Yes, that's a Gitlab solution sit in Github :-)    maybe you can find Github solutions/features in Gitlab repository too

 

Steps for Mac:

  1. Install the tool by npm in Terminal

    1. 1
      npm install -g gitlab-search
      After installation success, it make sense to prepare a GitLab access token now
  2. Create a GitLab personal access token

    1. https://gitlab.com/-/profile/personal_access_tokens
    2. Note: Make sure check-on 'read_api'

      Grants read access to the API, including all groups and projects, the container registry, and the package registry.

    3. or Select ALL;  We can see all the existing token under: Active personal access tokens (*)
    4. Got token(Your new personal access token) like: _avcPZb6sd4sUWXe3***
  3. Setup gitlab-search

    1. 1
      gitlab-search setup _avcPZb6sd4sUWXe3***
    2. Successfully wrote config to .gitlabsearchrc, gitlab-search is now ready to be used
  4. Usage sample:

    1. Search File content:
    2. 1
      gitlab-search functionabc

 

This's a useful tool to globally search file content in gitlab repositories, enjoy it.

 
posted @   CarlZeng  阅读(174)  评论(0编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 25岁的心里话
历史上的今天:
2010-03-17 js 动态表格举例
域名已变更 请手动修改文章中域名指向carlzeng.com
点击右上角即可分享
微信分享提示