<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          GitHub 搜索騷技巧,太好用了!

          共 2314字,需瀏覽 5分鐘

           ·

          2020-02-12 23:25

          6777a1c2848e2f544c6e7f43ecfa0bf1.webp08e744b2042a4c40673fa4c173cf60cd.webp


          ? 程序員進階架構師必備資源免費送 ?

          作者:Suwanbin

          鏈接:www.cnblogs.com/suwanbin/p/12113751.html


          ?Github 搜索技巧
          參考自 B站 up 主 CodeSheep 的視頻【如何高效地在網上找開源項目做!在職程序員實際演示一波視頻教程操作】,然后寫著寫著一好奇就去看文檔了現在這篇博客相當于官方文檔的翻譯版?當然,你也可以去看【官方文檔】體驗原汁原味的教程
          干啥的?相當于給搜索結果添加過濾條件,看下下面的案例你就知道啦,過濾 github 的搜索結果,更精確搜索項目


          ?案例

          ?普通搜


          關鍵詞:python1437e5a2318a4c9ddf79abdc5240f7dc.webp


          ?搭配技巧搜


          搜索 github 中,項目描述(description)中有 python 并且 2019-12-20 號之后有更新過的項目in:description python pushed:>2019-12-20效果:加了限制條件后,查出來的項目數有了明顯的減少acc0d13b2c6d3594f59609277ebc893e.webp


          ?限定詞


          可通過指定倉庫名(repository name)、項目描述(description)、內容(contents)、說明文件(readme.md)?來搜索項目562b94cc2f9a30f280bf005319c96469.webp其他騷操作?自己看官方文檔(感覺用不到,就不整理了吧):【找倉庫中的某個文件】、【在 github 上查找代碼片段】


          ?查找某個用戶或組織的項目


          2dec94e68db2b1797a823168e6ae9364.webp


          輔助限定詞

          可以通過限制?項目大小(size)、擁護者數(followers)、fork數(forks)、stars數(stars)、創(chuàng)建時間(created)、更新時間(pushed)、項目所用語言(language)、topic標簽(topic)、topic標簽數(topics)...來篩選項目輔助限定詞可以多個并用,用空格隔開就行,可以搭配限定詞使用,也可單獨使用(關于項目是否被 fork 這個點我不是很懂,就不寫案例了)
          • in:name python size:<=1000?查出項目名字中有 python 且小于 1MB 的項目
          • size:<=1000?查出項目大小小于 1MB 的項目


          bedbcde3d0ee98e104e0ef2b01c1d248.webp


          ?還沒搞懂的(關于 forks、mirror、issues)


          1. stars:>=500 fork:true language:php?matches repositories with the at least 500 stars, including forked ones, that are written in PHP.
          2.?case pushed:>=2013-03-06 fork:only?matches repositories with the word "case" that were pushed to on or after March 6th, 2013, and that are forks.
          3. mirror:true GNOME?matches repositories that are mirrors and contain the word "GNOME." 查出是鏡像并且包含 GNOME 關鍵字的項目(github 上 mirror 啥意思不太懂)
          4.?mirror:false GNOME?matches repositories that are not mirrors and contain the word "GNOME."
          5. good-first-issues:>2 javascript?matches repositories with more than two issues labeled?good-first-issue?and that contain the word "javascript."
          6.?help-wanted-issues:>4 react?matches repositories with more than four issues labeled?help-wantedand that contain the word "React."


          ?排序(放的是官網的鏈接)

          推薦直接在頁面上的搜索結果點擊排序,何必再去學一手呢?官網文檔:【給你的查詢結果排序】


          e0cfc11510cd31210bcbbb7a8b067598.webp


          ?使用指南


          自己靈活的使用限定詞和輔助限定詞寫出一套規(guī)則即可查出你想要的項目他們的位置先后、數量都無所謂,加上只是多了一個條件


          ?練習案例

          常用到的其實有就是這些,上面的還是太多了,你有那個需求,又找不到方式的時候可以查查看
          # 項目名字(name)里有?python?的
          in:name?python

          # 名字(name)里有?python?的并且 stars 大于?3000?的
          in:name?python?starts:>3000

          # 名字(name)里有?python?的并且 stars 大于?3000?、forks 大于?200?的
          in:name?python?starts:>3000?forks:>200


          # 詳情(readme)里面有?python?的并且 stars 大于?3000?的
          in:readme?python?starts:>3000

          # 描述(description)里面有?python?的并且 stars 大于?3000?的
          in:description?python?starts:>3000

          # 描述(description)里面有?python?的并且是?python?語言的
          in:description?python?language:python

          # 描述(description)里面有?python?的并且?2019-12-20?號之后有更新過的
          in:description?python?pushed:>2019-12-20


          本公眾號全部博文已整理成一個目錄,請在公眾號里回復「m」獲?。?/span>

          推薦閱讀:

          linux中xargs命令的使用方式

          值得收藏:一份非常完整、詳細的MySQL規(guī)范

          一份阿里員工排查程序問題的命令列表


          5T技術資源大放送!包括但不限于:C/C++,Linux,Python,Java,PHP,人工智能,單片機,樹莓派,等等。在公眾號內回復「1024」,即可免費獲?。?!


          瀏覽 130
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  免费看逼伊人电影 | 一级一级a爰片免费看在线 | 亚洲婷婷丁香 | 日本黄色小视频电影 | 久大香蕉伊人 |