![](http://static.javashuo.com/static/loading.gif)
前兩天小逛發現了一個 GitHub 的彩蛋,因爲太忙了,想發篇文章一直沒來得及。
想必不少同窗已經知道了這個彩蛋。是這樣的,下面是正經常使用戶的 GitHub 主頁面,左側是用戶的頭像和我的信息,右側是 Popular repositories 和 contribution graph 區域。
![](http://static.javashuo.com/static/loading.gif)
但我發現了一個大神的主頁面是這樣的,右側多出來花裏胡哨的東西看起來是否是很炫酷。這就是 GitHub 的小祕密,右側的內容是能夠定製的。git
![](http://static.javashuo.com/static/loading.gif)
怎麼建立右側的信息定製的區域呢?其實很簡單,步驟以下:
1. 建立新項目
github
建立一個新的 repo ,並將新 repo 的名稱命名爲你的 GitHub 的 ID。
微信
![](http://static.javashuo.com/static/loading.gif)
2. 設置app
當你將 repo 的名字設置爲你的 ID 時,便會出現了下面一段話:
You found a secret! Wechat-ggGitHub/Wechat-ggGitHub is a ✨special ✨ repository that you can use to add a README.md to your GitHub profile. Make sure it’s public and initialize it with a README to get started.
您發現了一個祕密!Wechat-ggGitHub / Wechat-ggGitHub是一個「特殊」存儲庫,可用於將 README.md 添加到您的GitHub我的資料中。確保它是公開的,並使用 README 文件對其進行初始化以開始使用。
設置完 repo 的名字,並使該倉庫的狀態爲 Public,而且勾選Initialize this repository with a README。
![](http://static.javashuo.com/static/loading.gif)
3. 預覽
微信支付
當建立 repo 完畢,打開我的主頁發現多出了下面一個部分。咱們能夠編輯這個模塊。ui
![](http://static.javashuo.com/static/loading.gif)
對 repo 中的 README.md 文件進行編輯,定製本身想要的信息。一樣你有想法也能搞出花裏胡哨的東西,我把 README.md 文件中模板部分取消了註釋,定製填了一些東西。修改完 README.md 文件後提交。
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
5. 預覽this
![](http://static.javashuo.com/static/loading.gif)
很多人找工做時,會在我的簡歷上附上本身的 GitHub 連接,咱們能夠把 README.md 文件看成一個我的能力展現的渠道。好比 Django 的做者 Simon Willison ,他主頁的 README 信息是實時更新的。
訪問github.com/simonw,看到一個三欄的 README 文件,其中顯示了我最新的GitHub項目版本,個人最新博客條目和最新的TIL。
具體怎麼實現的,能夠看下他最新的博客:
https://simonwillison.net/2020/Jul/10/self-updating-profile-readme/
除此以外,還有一個 17 歲的印度小夥,太秀(閒)了,他的 GitHub 主頁是下圖這樣的,正如他所說:Yea, The above image is quite cool :P
主頁地址:https://github.com/EliteDaMyth/
最後給你們推薦一個開源項目:Awesome Profiles。spa
https://github.com/kautukkundan/Awesome-Profile-README-templates.net
該項目收集了世界各地的開發人員在本身的我的資料上使用的很酷的 README.md 文件。3d
該項目沒發佈多長時間,如今已經成功突破 3.7k Star,看來你們對 GitHub的小彩蛋仍是比較感興趣的。
該項目有不少有趣的 README.md 文件,你們能夠去試試,最好都試一下。也想看看有沒有創意特別棒的,若是發現能夠私信小逛哈~
1. 一個項目搞定支付寶,微信支付!
2. Github 上 6 個吊炸天的後臺模板
3. 6 個 Github 項目拿下 Spring Boot !
4. 一行命令下載全網視頻
歡迎關注小逛的公衆號「逛逛GitHub」,置頂標星。每日一個有用、有料的 GitHub 項目推薦,秀的一批~掃描下方二維碼關注!
![](http://static.javashuo.com/static/loading.gif)