zoukankan      html  css  js  c++  java
  • 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. 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. 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. gitlab-search functionabc

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

     

    纠正错误,欢迎探讨:
    打开微信-发现-扫一扫
  • 相关阅读:
    自定义控件其实很简单5/12
    自定义控件其实很简单1/3
    自定义控件其实很简单1/4
    自定义控件其实很简单1/6
    ListView addfooter 没显示 footer的原因(之一)
    android 版本和 api level 的对应关系
    derby入门
    OA系统与ERP的区别
    Windows下的定时任务
    linux学习笔记——安装问题
  • 原文地址:https://www.cnblogs.com/backuper/p/Global_Search_in_Gitlab_repositories.html
Copyright © 2011-2022 走看看