浣犲彲鑳戒笉鐭ラ亾鐨?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鍔熻兘的主要内容,如果未能解决你的问题,请参考以下文章