浣犲彲鑳戒笉鐭ラ亾鐨?5涓湁鐢ㄧ殑Github鍔熻兘

Posted 鍓嶇妫灄

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了浣犲彲鑳戒笉鐭ラ亾鐨?5涓湁鐢ㄧ殑Github鍔熻兘相关的知识,希望对你有一定的参考价值。

寮曡█ 馃弬

鎴戜滑骞虫椂鐨勫伐浣滀腑锛?code>github鏄繀涓嶅彲灏戠殑浠g爜鎵樼骞冲彴锛屼絾鏄ぇ澶氭暟鍚屽涔熷彧鏄妸瀹冨仛涓轰簡鎵樼浠g爜鐨勫湴鏂癸紝骞舵病鏈夊悎鐞嗙殑鍘昏繍鐢ㄣ€?/p>

鍏跺疄github閲岄潰鏈夐潪甯稿濂界帺鎴栬€呮湁瓒g殑鍦版柟鐨勩€傚綋鐒讹紝杩欎簺鎶€宸т篃鑳藉浣犵殑宸ヤ綔鏁堢巼鏈夊緢澶х殑鎻愬崌銆?/p>

鎴戞暣鐞嗕簡涓€浜涜嚜宸卞钩鏃剁敤鐨勬瘮杈冨鐨勪竴浜涘姛鑳?鎶€宸э紝涔熷笇鏈涜兘缁欎綘鐨勫伐浣滃甫鏉ヤ竴浜涘府鍔╋紒

Gist 馃崜

鍙兘寰堝浜哄苟娌℃湁鍚繃Gist銆傚畠鍦?code>github棣栭〉鐨勫瓙鐩綍涓嬶細

杩欐槸github鎻愪緵鐨勪竴涓潪甯告湁鐢ㄧ殑鍔熻兘銆?code>Gist浣滀负涓€涓矘璐存暟鎹殑宸ュ叿锛屽氨鍍?Pastie 缃戠珯涓€鏍凤紝鍙互寰堝鏄撳湴灏嗘暟鎹矘璐村湪Gist缃戠珯涓紝骞跺湪鍏朵粬缃戦〉涓紩鐢?code>Gist涓矘璐寸殑鏁版嵁銆?/p>

浣滀负GitHub鐨勪竴涓瓙缃戠珯锛屽緢鑷劧鍦帮紝Gist浣跨敤Git鐗堟湰搴撳绮樿创鏁版嵁杩涜缁存姢锛岃繖鏄潪甯告柟渚跨殑銆?/p>

杩涘叆Gist缃戠珯鐨勯椤碉紝灏变細鐪嬪埌涓€涓ぇ澶х殑鏁版嵁绮樿创瀵硅瘽妗? 鍙鎻愪緵涓€琛岀畝鍗曠殑鎻忚堪銆佹枃浠跺悕锛屽苟绮樿创鏂囦欢鍐呭锛屽嵆鍙垱寤轰竴涓柊鐨勭矘璐淬€?/p>

姣忎竴涓柊鐨勭矘璐寸О涓轰竴涓?code>Gist锛屽苟鎷ユ湁涓€涓崟鐙殑URL銆?/p>

褰撲竴涓矘璐村垱寤哄畬姣曞悗锛屼細鏄剧ず鏂板缓绔嬬殑Gist椤甸潰, 鐐瑰嚮鍏朵腑鐨?code>embed锛堝祵鍏ワ級鎸夐挳锛屽氨浼氭樉绀轰竴娈电敤浜庡祵鍏ュ叾浠栫綉椤电殑javascript浠g爜锛屽皢涓婇潰鐨?code>JavaScript浠g爜宓屽叆鍒扮綉椤典腑锛屽嵆鍙湪鐩稿簲鐨勭綉椤典腑宓屽叆鏉ヨ嚜Gist鐨勬暟鎹紝骞朵繚鎸佽娉曢珮浜瓑鍔熻兘銆?br>

閫氳繃 web 鐣岄潰鍒涘缓鏂囦欢 馃崑

鍦ㄦ湁浜涙椂鍊欙紝鎴戜滑鍙兘涓嶅お鎯崇敤鏈湴鍒涘缓鏂囦欢锛岀劧鍚庨€氳繃git鎺ㄩ€佸埌杩滅▼杩欑鏂瑰紡鍘诲垱寤烘枃浠讹紝閭d箞鏈夋病鏈夌畝鍗曢珮鏁堢殑涓€绉嶅仛娉曞憿锛?/p>

寰堢畝鍗曪紝閫氳繃github鎻愪緵鐨?web 鐣岄潰鍒涘缓鏂瑰紡锛?code>create new file锛夊幓鍒涘缓灏卞彲浠ヤ簡锛?/p>

鏂囦欢鏌ユ壘 馃浀

鏈夋椂锛屾垜浠兂鍦ㄤ竴涓簽澶х殑 git 浠撳簱涓幓鏌ユ壘鏌愪竴涓枃浠讹紝濡傛灉涓€涓竴涓殑鍘荤湅锛屽彲鑳介渶瑕佷竴娈垫椂闂达紙鎴戜箣鍓嶆椂甯告劅瑙夊湪github浠撳簱涓幓鏌ユ壘涓€涓枃浠剁湡鐨勫ソ楹荤儲锛夈€?/p>

鍏跺疄 github 鎻愪緵浜嗕竴涓揩鎹风殑鏌ユ壘鏂瑰紡锛氭寜閿洏\'T\'閿縺娲绘枃浠舵煡鎵惧櫒锛屾寜 猬嗭笍 鍜?猬囷笍 涓婁笅閫夋嫨鏂囦欢锛屽綋鐒朵篃鍙互杈撳叆浣犺鏌ユ壘鐨勬枃浠跺悕锛屽揩閫熸煡鎵俱€?br>

github cli(鍛戒护琛? 馃枼

褰撴垜浠皢鏈湴浠g爜鎻愪氦鍒?GitHub 鍚庯紝灏卞彲浠ュ湪 GitHub 缃戠珯涓婃煡鐪嬪埌鍚勭鐨勪氦浜掍俊鎭簡锛屼緥濡傚叾瀹冨紑鍙戣€呮彁鐨?Issue锛屾垨鑰呮彁浜ょ殑浠g爜鍚堝苟璇锋眰绛夈€備絾鏄紝濡傛灉鎴戜滑鑳藉湪鍛戒护琛屼笂鐩存帴鏌ョ湅銆佸鐞嗚繖浜涗俊鎭紝閭d箞杩欎竴瀹氶潪甯搁叿銆?/p>

涓嬮潰璁╂垜甯︿綘浠?0 鍒?1 涓婃墜GitHub CLI鍚э紒

瀹夎

瑕佸畨瑁?GitHub CLI 闈炲父绠€鍗曘€?/p>

鍦?code>macOS涓嬮潰鍙互浣跨敤Homebrew宸ュ叿杩涜瀹夎锛?/p>

$ brew install github/gh/gh
# 濡傛灉闇€瑕佹洿鏂版墽琛屼笅闈㈢殑鍛戒护鍗冲彲
$ brew update && brew upgrade gh

鍦?code>Windows涓嬪彲浠ヤ娇鐢ㄥ涓嬪懡浠よ杩涜瀹夎锛?/p>

scoop bucket add github-gh https://github.com/cli/scoop-gh.git
scoop install gh

瀹夎瀹屾垚鍚庣洿鎺ュ湪鍛戒护琛屼腑鎵цgh鍛戒护锛岀湅鍒板涓嬪浘鎵€绀虹殑淇℃伅灏辫鏄庡凡缁忓畨瑁呮垚鍔熶簡锛?br>
鍏朵粬骞冲彴鐨勫畨瑁呭弬鑰冨畼鏂规枃妗e嵆鍙? https://cli.github.com/manual/installation

浣跨敤

浣跨敤鐨勬椂鍊欓渶瑕佹垜浠繘琛屼竴娆℃巿鏉冿細

鍦ㄥ懡浠よ涓緭鍏ュ洖杞﹂敭灏变細鍦ㄦ祻瑙堝櫒涓墦寮€鎺堟潈椤甸潰锛岀偣鍑绘巿鏉冨嵆鍙細

鎺堟潈鎴愬姛鍥炲埌鍛戒护琛岋紝鎴戜滑鍙戠幇閫氳繃gh issue list鎸囦护宸茬粡鎷垮埌浜?code>issue鍒楄〃锛?br>

鎴戣繖杈瑰垪涓惧嚑涓父鐢ㄧ殑鎿嶄綔銆?/p>

鍒涘缓 issue

鎴戜滑閫氳繃 CLI 鍏堜氦浜掑紡鍦版彁浜や簡涓€鏉?code>issue锛?code>issue鐨?Body 闇€瑕侀€氳繃nano缂栬緫銆?br>

绛涢€?issue

issue鍒楄〃寰€寰€瀛樺湪鏈夊お澶氱殑鏉$洰锛岄€氳繃鎸囧畾鏉′欢绛涢€?code>issue鏄竴涓緢甯歌鐨勯渶姹傦細

濡備笂鍥炬墍绀猴紝瀹冨皢绛涢€夊嚭label鏄?code>鍔ㄦ€佽鍒?/code>鐨勬墍鏈?code>issue

蹇€熸祻瑙?/h4>

鎵惧埌涓€涓綘鍏虫敞鐨?code>issue杩囧悗锛岃鎯虫煡鐪嬭issue鐨勫叿浣撲俊鎭紝鍙互浣跨敤濡備笅鍛戒护鍦ㄦ祻瑙堝櫒涓揩閫熷皢issue鐨勮缁嗕俊鎭〉闈㈡墦寮€锛?br>
鎺ヤ笅鏉ュ彲浠ラ€夋嫨鎵撳紑缃戦〉锛岄瑙堝苟鎻愪氦銆傚綋鐒讹紝鎴戜滑涔熷彲浠ラ€夋嫨鐩存帴鍦ㄥ懡浠よ杩涜鎻愪氦銆?/p>

杩欓噷鎴戝彧鏄畝鍗曚粙缁嶄簡issue鐩稿叧鐨勫嚑涓父鐢ㄥ懡浠わ紝鏇村鐨勪娇鐢ㄦ柟寮忓彲浠ユ煡鐪嬪畼鏂规枃妗d簡瑙f洿澶氾細https://cli.github.com/manual/examples銆?/p>

GitHub Actions 馃殌


GitHub Actions 鏄?GitHub 鐨勬寔缁泦鎴愭湇鍔°€?/p>

閫氬父鎸佺画闆嗘垚鏄敱寰堝鎿嶄綔缁勬垚鐨勶紝姣斿鎶撳彇浠g爜銆佹墽琛岃剼鏈€佺櫥褰曡繙绋嬫湇鍔″櫒銆佸彂甯冨埌绗笁鏂规湇鍔$瓑銆?code>GitHub灏嗚繖浜涙搷浣滅О浣?code>actions銆?/p>

濡傛灉浣犻渶瑕佹煇涓?action锛屼笉蹇呰嚜宸卞啓澶嶆潅鐨勮剼鏈紝鐩存帴寮曠敤浠栦汉鍐欏ソ鐨?action 鍗冲彲锛屾暣涓寔缁泦鎴愯繃绋嬶紝灏卞彉鎴愪簡涓€涓?actions 鐨勭粍鍚堛€?/p>

GitHub 鍋氫簡涓€涓畼鏂瑰競鍦猴紝鍙互鎼滅储鍒颁粬浜烘彁浜ょ殑 actions锛?br>
涓嬮潰鍒嗗埆浠庡熀鏈蹇靛拰鍙戝竷娴佺▼璇︾粏璇存槑涓€涓?code>GitHub Actions銆?/p>

鍩烘湰姒傚康

  • workflow 锛堟祦绋嬶級锛氭寔缁泦鎴愪竴娆¤繍琛岀殑杩囩▼锛屽氨鏄竴涓?workflow銆?/li>
  • job 锛堜换鍔★級锛氫竴涓?workflow 鐢变竴涓垨澶氫釜 jobs 鏋勬垚锛屽惈涔夋槸涓€娆℃寔缁泦鎴愮殑杩愯锛屽彲浠ュ畬鎴愬涓换鍔°€?/li>
  • step锛堟楠わ級锛氭瘡涓?job 鐢卞涓?step 鏋勬垚锛屼竴姝ユ瀹屾垚銆?/li>
  • action 锛堝姩浣滐級锛氭瘡涓?step 鍙互渚濇鎵ц涓€涓垨澶氫釜鍛戒护锛坅ction锛夈€?/li>

瀹炰緥锛歊eact 椤圭洰鍙戝竷鍒?GitHub Pages

杩欓噷閫氳繃 GitHub Actions 鏋勫缓涓€涓?React 椤圭洰锛屽苟鍙戝竷鍒?GitHub Pages銆傛渶缁堜唬鐮侀兘鍦ㄨ繖涓?a href="https://link.segmentfault.com/?url=https%3A%2F%2Fgithub.com%2FCosen95%2Fgithub-actions-demo" rel="nofollow">浠撳簱閲岄潰锛屽彂甯冨悗鐨勭綉鍧€涓?code>https://jack-cool.github.io/github-actions-demo/銆?/p>

鐢熸垚瀵嗛挜

鐢变簬绀轰緥闇€瑕佸皢鏋勫缓鎴愭灉鍙戝埌GitHub浠撳簱锛屽洜姝ら渶瑕?GitHub 瀵嗛挜銆傛寜鐓?a href="https://link.segmentfault.com/?url=https%3A%2F%2Fhelp.github.com%2Fen%2Fgithub%2Fauthenticating-to-github%2Fcreating-a-personal-access-token-for-the-command-line" rel="nofollow">瀹樻柟鏂囨。锛岀敓鎴愪竴涓瘑閽ャ€傜劧鍚庯紝灏嗚繖涓瘑閽ュ偍瀛樺埌褰撳墠浠撳簱鐨?code>Settings/Secrets閲岄潰銆?br>
鎴戣繖閲岀幆澧冨彉閲忕殑鍚嶅瓧鐢ㄧ殑鏄?code>ACCESS_TOKEN銆?/p>

鍒涘缓 React 椤圭洰

浣跨敤create-react-app鍒濆鍖栦竴涓?React 搴旂敤锛?/p>

$ npx create-react-app github-actions-demo
$ cd github-actions-demo

鍦ㄩ」鐩殑package.json涓紝娣诲姞涓€涓?code>homepage瀛楁锛堣〃绀鸿搴旂敤鍙戝竷鍚庣殑鏍圭洰褰曪級

"homepage": "https://jack-cool.github.io/github-actions-demo"

鍒涘缓 workflow 鏂囦欢

鍦ㄩ」鐩殑.github/workflows鐩綍锛屽垱寤轰竴涓?code>workflow鏂囦欢锛岃繖閲岀敤鐨勬槸ci.yml銆?/p>

涓婇潰宸茬粡鎻愬埌GitHub鏈変竴涓畼鏂圭殑甯傚満锛岃繖閲屾垜浠洿鎺ラ噰鐢ㄧ殑鏄?code>JamesIves/github-pages-deploy-action锛?/p>

name: GitHub Actions Build and Deploy Demo
on:
  push:
    branches:
      - master
jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
      # 鎷夊彇浠g爜
      - name: Checkout
        uses: actions/checkout@v2 # If you\'re using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
        with:
          persist-credentials: false
      # 瀹夎渚濊禆銆佹墦鍖?      - name: Install and Build
        run: |
          npm install
          npm run-script build

      # 閮ㄧ讲鍒?GitHub Pages
      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@releases/v3
        with:
          ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
          BRANCH: gh-pages
          FOLDER: build

杩欓噷姊崇悊涓嬮厤缃枃浠堕兘鍋氫簡浜涗粈涔堬細

1銆?鎷夊彇浠g爜銆傝繖閲岀敤鐨勬槸 GitHub 瀹樻柟鐨?action: actions/checkout@v2

2銆佸畨瑁呬緷璧栥€佹墦鍖?/p>

3銆侀儴缃插埌GitHub Pages銆備娇鐢ㄤ簡绗笁鏂逛綔鑰呯殑 action锛?code>JamesIves/github-pages-deploy-action@releases/v3銆傛垜杩欓噷璇︾粏浠嬬粛涓嬭繖涓?action锛?/p>

浣跨敤 with 鍙傛暟鍚戠幆澧冧腑浼犲叆浜嗕笁涓幆澧冨彉閲忥細

  • ACCESS_TOKEN锛氳鍙?GitHub 浠撳簱 secrets 鐨?ACCESS_TOKEN 鍙橀噺锛屼篃灏辨槸鎴戜滑鍓嶉潰璁剧疆鐨?/li>
  • BRANCH锛氶儴缃插垎鏀?gh-pages锛?code>GitHub Pages 璇诲彇鐨勫垎鏀級
  • FOLDER锛氶渶瑕侀儴缃茬殑鏂囦欢鍦ㄤ粨搴撲腑鐨勮矾寰勶紝涔熷氨鏄垜浠娇鐢?npm run build 鐢熸垚鐨勬墦鍖呯洰褰?/li>
杩欓噷鏈変竴鐐归渶瑕佹敞鎰忥細鎴戜娇鐢ㄧ殑鏄?v3 鐗堟湰锛岄渶瑕佷娇鐢?with 鍙傛暟浼犲叆鐜鍙橀噺锛屼笖闇€瑕佽嚜琛屾瀯寤猴紱缃戜笂甯歌鐨勬暀绋嬩娇鐢ㄧ殑鏄?v2 鐗堟湰锛屼娇鐢?env 鍙傛暟浼犲叆鐜鍙橀噺锛屼笉闇€瑕佽嚜琛屾瀯寤猴紝鍙娇鐢?BUILD_SCRIPT 鐜鍙橀噺浼犲叆鏋勫缓鑴氭湰銆?/blockquote>

鍒拌繖閲岋紝閰嶇疆宸ヤ綔灏卞畬鎴愪簡銆?/p>

浠ュ悗锛屼綘姣忔鏈変唬鐮?push 鍒?master 鍒嗘敮鏃讹紝GitHub 閮戒細寮€濮嬭嚜鍔ㄦ瀯寤恒€?/p>

鍒嗕韩鍏蜂綋浠g爜 馃幆

骞虫椂鎴戜滑鍙兘鏈変竴琛岄潪甯稿ソ鐨勪唬鐮侊紝鎯冲垎浜粰鍏朵粬鍚屼簨鐪嬶紝閭d箞鍙互鍦?code>url鍚庨潰鍔犱笂#L 琛屽彿锛屾瘮濡傦細
https://github.com/Cosen95/rest_node_api/blob/master/app/models/users.js#L17锛屾晥鏋滃涓嬪浘锛?br>

濡傛灉鏄兂鍒嗕韩鏌愬嚑琛岀殑锛屽彲浠ュ湪url鍚庨潰娣诲姞濡?code>#L 寮€濮嬭鍙?L 缁撴潫琛屽彿锛屽儚https://github.com/Jack-cool/rest_node_api/blob/master/app/models/users.js#L17-L31锛屾晥鏋滃涓嬪浘锛?br>

閫氳繃鎻愪氦鐨?code>msg鑷姩鍏抽棴 issue 馃弶

鎴戜滑鍏堟潵鐪嬩竴涓嬪叧闂?code>issues鐨勫叧閿瓧锛?/p>

  • close
  • closes
  • closed
  • fix
  • fixes
  • fixed
  • resolve
  • resolves
  • resolved

鍏抽棴鍚屼竴涓粨搴撲腑鐨?issue

濡傛灉鏄湪鍚屼竴涓粨搴撲腑鍘诲叧闂?code>issue鐨勮瘽锛屽彲浠ヤ娇鐢ㄤ笂闈㈠垪琛ㄤ腑鐨勫叧閿瓧骞跺湪鍏跺悗鍔犱笂issue缂栧彿鐨勫紩鐢ㄣ€?/p>

渚嬪涓€涓彁浜や俊鎭腑鍚湁fixes #26锛岄偅涔堜竴鏃﹁繖娆℃彁浜よ鍚堝苟鍒伴粯璁ゅ垎鏀紝浠撳簱涓殑 26 鍙?code>issue灏变細鑷姩鍏抽棴銆?/p>

濡傛灉杩欐鎻愪氦涓嶆槸鍦ㄩ粯璁ゅ垎鏀紝閭d箞杩欎釜issue灏嗕笉浼氬叧闂紝浣嗘槸鍦ㄥ畠涓嬮潰浼氭湁涓€涓彁绀轰俊鎭€傝繖涓彁绀轰俊鎭細鎻愮ず浣犳煇浜烘坊鍔犱簡涓€涓彁浜ゆ彁鍒颁簡杩欎釜issue锛屽鏋滀綘灏嗗畠鍚堝苟鍒伴粯璁ゅ垎鏀氨浼氬叧闂issue銆?/blockquote>

鍏抽棴涓嶅悓浠撳簱涓殑 issue

濡傛灉鎯冲叧闂彟涓€涓粨搴撲腑鐨?code>issue锛屽彲浠ヤ娇鐢?code>username/repository/#issue_number杩欐牱鐨勮娉曘€?/p>

渚嬪锛屾彁浜や俊鎭腑鍖呭惈closes Jack-cool/fe_interview/issues/113锛屽皢浼氬叧闂?code>fe_interview涓殑113鍙?code>issue銆?/p>

鍏抽棴鍏朵粬浠撳簱issue鐨勫墠鎻愭槸浣犲皢浠g爜push鍒颁簡瀵瑰簲鐨勪粨搴?/blockquote>

鏌ョ湅椤圭洰鐨勮闂暟鎹?馃巸

鍦ㄨ嚜宸辩殑椤圭洰涓嬶紝鐐瑰嚮 Insights锛岀劧鍚庡啀鐐瑰嚮 Traffic锛岄噷闈㈡湁 Referring sites 鍜?Popular content 鐨勮缁嗘暟鎹拰鎺掑悕銆?/p>

鍏朵腑 Referring sites 琛ㄧず澶у閮芥槸浠庝粈涔堢綉绔欐潵鍒颁綘鐨勯」鐩殑锛?code>Popular content 鍒欒〃绀哄ぇ瀹剁粡甯哥湅浣犻」鐩殑鍝簺鏂囦欢銆?/p>

浠诲姟娓呭崟 馃摑

鏈夋椂鍊欐垜浠渶瑕佹爣璁颁竴浜涗换鍔℃竻鍗曞幓璁板綍鎴戜滑鎺ヤ笅鏉ヨ鍋氱殑浜嬫儏銆?/p>

鍒涘缓浠诲姟鍒楄〃

issues 鍜?pull requests 閲屽彲浠ユ坊鍔犲閫夋锛岃娉曞涓嬶紙娉ㄦ剰绌虹櫧绗︼級:

- [ ] 姝ラ涓€
- [ ] 姝ラ浜?  - [ ] 姝ラ2.2
  - [ ] 姝ラ2.3
- [ ] 姝ラ涓?/code>

鏁堟灉濡備笅锛?br>

鏅€氱殑markdown鏂囦欢涓彲鍒涘缓鍙鐨勪换鍔″垪琛紝姣斿鍦?code>README.md涓坊鍔?TODO list:

### 鎺ヤ笅鏉ヨ鍋氱殑浜?馃
- [x] 鏁版嵁缁撴瀯涓庣畻娉?- [ ] react婧愮爜
- [ ] docker

鏁堟灉濡備笅锛?br>

瀵逛换鍔℃帓搴?/h3>

浣犲彲浠ュ崟鍑讳换鍔″乏杈圭殑澶嶉€夋骞舵嫋鏀捐嚦鏂颁綅缃紝瀵瑰崟涓€璇勮涓殑浠诲姟鍒楄〃閲嶆柊鎺掑簭銆?br>

issues 妯$増鍜?pull request 妯$増 馃崻

杩欓噷浠?code>issue妯$増涓句緥锛?code>pr妯℃澘绫讳技

杩欎釜issue妯$増鎴戞槸鍦ㄧ粰element ui鎻?code>issue鏃跺彂鐜扮殑锛?br>

鍦?code>GitHub涓紝浠g爜搴撶淮鎶よ€呭鏋滄彁渚涙湁瀹氬埗鐨?issues 妯$増鍜?code>pull request 妯$増锛屽彲浠ヨ浜轰滑鏈夐拡瀵规€х殑鎻愪緵鏌愮被闂鐨勫噯纭俊鎭紝浠庤€屽湪鍚庣画缁存姢涓兘澶熻繘琛屾湁鏁堝湴瀵硅瘽鍜屾敼杩涳紝鑰屼笉鏄潅涔辨棤绔犵殑鐣欒█銆?/p>

鍒涘缓issues妯$増

  • 鍦ㄤ唬鐮佸簱鏍圭洰褰曟柊寤?code>.github鐩綍
  • 鍦?.github 鐩綍涓嬫坊鍔?ISSUE_TEMPLATE.md 鏂囦欢浣滀负 issues 榛樿妯$増銆傚綋鍒涘缓 issue 鏃讹紝绯荤粺浼氳嚜鍔ㄥ紩鐢ㄨ妯$増銆?/li>

濡傛垜鍦ㄩ」鐩牴鐩綍涓嬫柊寤轰簡.github/ISSUE_TEMPLATE.md锛?/p>

## 姒傝堪

bug 姒傝堪

## 閲嶇幇姝ラ

1. aaa
2. bbb
3. ccc

## Bug 琛屼负

Bug 鐨勮〃鐜拌涓?
## 鏈熸湜琛屼负

杞欢鐨勬纭涓?
## 闄勪欢

闄勪笂鍥剧墖鎴栨棩蹇楋紝鏃ュ織璇风敤鏍煎紡锛?
> ```
> 鏃ュ織鍐呭
> ```

鍦ㄨ浠撳簱鏂板缓issue鏃跺氨浼氬嚭鐜颁笂闈㈤璁剧殑issue妯$増锛?/p>

GitHub Wiki 馃摐

澶у骞虫椂鐨勯」鐩紝涓€鑸兘浣跨敤 Markdown 鏉ョ紪鍐欓」鐩枃妗e拰 README.md 绛夈€?code>Markdown 涓€鑸儏鍐典笅鑳藉婊¤冻鎴戜滑鐨勬枃妗g紪鍐欓渶姹傦紝濡傛灉浣跨敤寰楀綋鐨勮瘽锛屾晥鏋滀篃闈炲父妫掋€備笉杩囧綋椤圭洰鏂囨。姣旇緝闀跨殑鏃跺€欙紝闃呰浣撻獙鍙兘灏变笉鏄偅涔堢悊鎯充簡锛岃繖绉嶆儏鍐垫垜鎯冲ぇ瀹跺簲璇ラ兘鏇剧粡閬囧埌杩囥€?/p>

GitHub 姣忎竴涓」鐩兘鏈変竴涓崟鐙畬鏁寸殑 Wiki 椤甸潰锛屾垜浠彲浠ョ敤瀹冩潵瀹炵幇椤圭洰淇℃伅绠$悊锛屼负椤圭洰鎻愪緵鏇村姞瀹屽杽鐨勬枃妗c€傛垜浠彲浠ユ妸 Wiki 浣滀负椤圭洰鏂囨。鐨勪竴涓噸瑕佺粍鎴愰儴鍒嗭紝灏嗗啑闀裤€佸叿浣撶殑鏂囨。鏁寸悊鎴?Wiki锛屽皢绮剧畝鐨勩€佹杩版€х殑鍐呭锛屾斁鍒伴」鐩腑鎴栨槸 README.md 閲屻€?/p>

鍏充簬Wiki鐨勪娇鐢紝杩欓噷灏变笉灞曞紑璇存槑浜嗭紝鍏蜂綋鍙互鍙傝€?a href="https://link.segmentfault.com/?url=https%3A%2F%2Fhelp.github.com%2Fen%2Fgithub%2Fbuilding-a-strong-community%2Fabout-wikis" rel="nofollow">瀹樻柟鏂囨。

鏌ョ湅鎻愪氦璁板綍鐑害鍥?馃懆鈥嶐煔€

鏌ョ湅鏂囦欢鏃讹紝鍙互鎸?code>b鏌ョ湅鎻愪氦璁板綍鍜屾樉绀烘瘡涓€琛岀殑鏈€杩戜慨鏀规儏鍐电殑鐑害鍥俱€傚畠浼氬憡璇変綘姣忚浠g爜鐨勬彁浜や汉锛屽苟涓旀彁渚涗竴涓彲浠ョ偣鍑荤殑閾炬帴鍘绘煡鐪嬪畬鏁存彁浜ゃ€?/p>

涓棿鏈変竴涓鑹茬殑绔栨潯銆傞鑹茶秺椴滆壋锛屾洿鏀圭殑鏃堕棿灏辫秺杩戙€?/blockquote>

Git Submodules vs Git Subtrees 馃懆鈥嶐煂?/h2>

涓轰粈涔堜娇鐢?Submodules or Subtrees?

鍥㈤槦涓竴鑸兘浼氭湁鍏叡鐨勪唬鐮佸簱锛?code>submodule鍜?code>subtrees鍙互璁╂垜浠湪涓嶅悓椤圭洰涓娇鐢ㄨ繖浜涘叕鍏辩殑浠g爜锛岄伩鍏嶅洜鎷疯礉浜х敓閲嶅浠g爜锛岀敋鑷冲鑷寸浉鍚屼唬鐮佸嚭鐜颁笉鍚屼慨鏀逛骇鐢熷涓増鏈€?/p>

鍖哄埆

subtree 鍜?submodule 鐨勭洰鐨勯兘鏄敤浜?git 瀛愪粨搴撶鐞嗭紝浜岃€呯殑涓昏鍖哄埆鍦ㄤ簬锛?code>subtree 灞炰簬鎷疯礉瀛愪粨搴擄紝鑰?submodule 灞炰簬寮曠敤瀛愪粨搴撱€?/p>

浣跨敤

鍏充簬瀹炶返锛屽畼鏂规枃妗e啓鐨勫凡缁忛潪甯告竻妤氫簡锛屾垜杩欓噷鐩存帴鏀句笂閾炬帴锛?/p>

  • submodule: https://git-scm.com/book/en/v2/Git-Tools-Submodules
  • subtree: https://einverne.github.io/post/2020/04/git-subtree-usage.html

GitHub 鎻掍欢鎺ㄨ崘 馃

GitHub鐨勬彃浠舵湁寰堝寰堝锛岃繖閲屽氨鎺ㄨ崘涓€涓嬫垜甯哥敤鐨勪笁涓彃浠躲€?/p>

Octotree

鎴戜滑鏈夋椂缁忓父闇€瑕佸湪github涓婃煡鎵炬枃浠讹紝浣嗗鏋滄枃浠剁粨鏋勫祵濂楀緢娣憋紝鏌ユ壘璧锋潵鏄潪甯搁夯鐑︾殑锛岃繖鏃朵娇鐢?code>Octotree鍙互鍦ㄤ粨搴撳乏渚ф樉绀哄綋鍓嶉」鐩殑鐩綍缁撴瀯锛岃浣犲彲浠ュ湪github涓婂儚浣跨敤Web IDE涓€鏍锋柟渚裤€?br>

isometric-contributions


杩欎釜鏄彲浠ユ洿閰风偒鐨?3D 绔嬩綋寮忔覆鏌?code>github璐$尞銆?br>

Enhanced GitHub


杩欎釜鎻掍欢鏀寔鍦ㄤ粨搴撲腑鏄剧ず浠撳簱澶у皬銆佹瘡涓枃浠剁殑澶у皬浠ュ強姣忎釜鏂囦欢鐨勪笅杞介摼鎺ャ€?br>

GitHub 鍚夌ゥ鐗?Octocat 馃

鍝堝搱 杩欎釜灏辨瘮杈冩湁鎰忔€濅簡 鎴戜篃鏄垰鐭ラ亾鍘熸潵github涔熸湁鑷繁鐨勫悏绁ョ墿銆?/p>

杩欓噷璐翠笅缃戠珯锛岄『渚块€変簡鍑犱釜鎰熻寰堣悓鐨勶紝澶у涔熷彲浠ュ幓涓婇潰閫夊嚑涓綔涓鸿嚜宸辩殑澶村儚浠€涔堢殑銆?br>

鍙傝€?/h3>
  • 闃竴宄拌€佸笀 銆奊itHub Actions 鍏ラ棬鏁欑▼銆?/li>

鐖卞績涓夎繛鍑?鉂?/b>

1銆佸鏋滄劅瑙夊唴瀹瑰浣犳湁甯姪锛屼篃娆㈣繋浣?b>鍒嗕韩缁欐洿澶氱殑鏈嬪弸銆?/p>

2銆佸叧娉ㄥ叕浼楀彿鍓嶇妫灄锛屽畾鏈熶负浣犳帹閫佹柊椴滃共璐уソ鏂囥€?/p>

3銆佹坊鍔犲井淇?b>fs1263215592锛屾媺浣犺繘鎶€鏈氦娴佺兢涓€璧峰涔?馃嵒

以上是关于浣犲彲鑳戒笉鐭ラ亾鐨?5涓湁鐢ㄧ殑Github鍔熻兘的主要内容,如果未能解决你的问题,请参考以下文章

浣犲彲鑳戒笉鐭ラ亾鐨?鏉ebpack浼樺寲绛栫暐

浣犱笉鐭ラ亾鐨凣it

浣犱笉鐭ラ亾鐨?Event Loop

鍦ㄥ伐浣滀腑浣犲彲鑳戒細閬囪鐨勪簨鎯呭搱

鍒濆叆闂ㄦ椂瑙佸埌鐨勪竴浜涙瘮杈冩湁鐢ㄧ殑鍑芥暟