ใช้ GitHub ใช้ Octotree, plugin ที่จะทำให้คุณท่อง GitHub repos ง่ายขึ้น

Octotree เป็น browser extension ที่ทำให้คุณเข้าถึงไฟล์ได้ง่ายขึ้น ไวขึ้นโดยจะแสดงเป็น project explorer อยู่ทางด้านซ้ายมือทุกครั้งที่คุณเข้าถึง repository ใน github.com

สำหรับ Google Chrome: https://chrome.google.com/webstore/detail/octotree/bkhaagjahfmjljalopjnoealnfndnagc?hl=en-US

สำหรับ Firefox: https://addons.mozilla.org/en-us/firefox/addon/octotree/

เมื่อติดตั้งแล้วจะมีกล่องด้านซ้ายเพิ่มขึ้นมา

ครั้งแรกอาจซ่อนอยู่ให้กดลูกศรที่มุมซ้ายบน พอกดแล้วจะขยายออกมาตามรูปแรก (ปุ่มจะแสดงเฉพาะหน้าที่เป็น git repo เท่านั้น)

ที่ folder สามารถ expand ได้โดยการกดที่รูป folder

ถ้ากดที่ชื่อไฟล์ จะเป็นการพา Google Chrome ไปที่ไฟล์นั้น

ถ้ากดที่รูปเอกสาร จะเป็นการดาวโหลดไฟล์นั้น ๆ

Octotree กับ private repositories

ทีนี้ถ้าต้องการใช้กับ private repositories ยังยังใช้งานไม่ได้ทันทีต้องกรอกใส่ site access token ก่อน โดยการกดรูปพันเฟืองหลังจากกด expand จากมุมขวาจอแล้ว

วิธีการเอส access token (ถ้าทำเป็นให้ข้ามวิธีการไปได้เลย)

> ให้ทำการ login GitHub

> กดที่รูปโปรไฟล์ตัวเอง

> เลือก Settings

> ดูที่กลุ่ม “Developer settings” จะเป็นกล่องอยู่ด้านซ้ายล่าง ๆ

> เลือก “Personal access tokens”

ถ้าเป็น ​GitHub Enterprise สามารถ กรอก uri ของ GitHub ลงไปได้ด้วย

> กดปุ่ม “ Generate new token” สีเขียวมุมขวาบน

> ตรงนี้อาจจะถาม password ของ GitHub เรา ให้กรอก password แล้วเลือก “Confirm Password” หรือกดปุ่ม Enter

> ตั้งชื่อของ Access token เช่น “Octotree in Stable Chrome Stable on My MBPt15”

> ติ๊กที่ช่อง “repo”: “Full control of private repositories”

> เลือก “Generate token” แล้วทำการคัดลอกตัว token มากรอกที่ Octotree

> กด “Save” เท่านี้เป็นอันเรียบร้อย

ขอให้สนุกกับการใช้งาน GitHub
สวัสดีครับ :)

odds.team

Odds Team

Wasith T. (Bai-Phai)

Written by

ตบมือเป็นกำลังใจให้ผมด้วยนะครับ 😘

odds.team

odds.team

Odds Team

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade