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:
-
Install the tool by npm in Terminal
-
1
npm install -g gitlab-search
-
-
Create a GitLab personal access token
- https://gitlab.com/-/profile/personal_access_tokens
- 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.
- or Select ALL; We can see all the existing token under: Active personal access tokens (*)
- Got token(Your new personal access token) like: _avcPZb6sd4sUWXe3***
-
Setup gitlab-search
-
1
gitlab-search setup _avcPZb6sd4sUWXe3***
- Successfully wrote config to .gitlabsearchrc, gitlab-search is now ready to be used
-
-
Usage sample:
- Search File content:
-
1
gitlab-search functionabc
This's a useful tool to globally search file content in gitlab repositories, enjoy it.
本文来自博客园,作者:CarlZeng,转载请注明原文链接:https://www.cnblogs.com/backuper/p/Global_Search_in_Gitlab_repositories.html
需求沟通链接 扫客服加群:

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 25岁的心里话
2010-03-17 js 动态表格举例