Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> อินเทอร์เน็ต

เริ่มต้นใช้งาน Git และ GitHub: คู่มือขั้นตอน

GitHub = World's Largest Host ของ Open-source Projects ยอดนิยม: Atom Text Editor, TensorFlow (Google), React (Facebook) รู้จักใน Advanced Projects: Big Data, AI, IoT แต่มี Animations, Emojis, Games, Simpler Software เทคนิคคล้าย "Torrents" แต่สำหรับ Software/Apps

มือใหม่ GitHub Learning Curve ชัน เตรียม Step-by-step Guide Gentle Introduction

1. สร้าง GitHub Account

Link สร้าง Account Free for Individuals: 3 Collaborators Limit Professional/Team/Enterprise: Unlimited Collaborators

เลือก Purpose การใช้ GitHub

2. สร้าง First GitHub Repository

Account Verified แล้ว กด "+" มุมขวาบน > New Repository

Public หรือ Private ติ๊ก "Initialize the repository with README" = First Item Visitor เห็น ใส่ Description, What they can do, How to Install/Use

Repo Created = Home Address บน GitHub = "master" Branch สร้าง Branches ใหม่แยกจาก Main Development Branch

Developers ใช้ Branches เก็บ File Versions ต่างกัน, Bug Fixes, Activities อื่นๆ

3. Download GitHub และ Git สร้าง Staging Environment บน PC

GitHub Account + First Repo Ready ต้อง Staging Environment บน PC Receive GitHub Files/Version Updates Download/Install GitHub Desktop (Windows/macOS)

Install แล้ว Sign in ด้วย GitHub Account GitHub Desktop Import Repo Downloads และ Push Own Updates ไป Repos

ต้อง Tool อีกตัว: "Git" Git = Version Control System, GitHub = Cloud Service Git Run Locally บน Computer (Independent of GitHub) Git ช่วย Run Applications จาก Command Terminal

Configure Git ใช้เวลา สังเกต Unique Email ใช้ Register Account

Git Installed as GNU GPL Install เร็ว

Launch "GitBash" = Command Terminal สำหรับ Git Run Software/Apps จาก GitHub Repos

4. Clone หรือ Download Applications

ไป GitHub Page Developer เช่น Gamepage JavaScript RPG Download ZIP หรือ Download to GitHub Desktop (Step 3) Search Repo บน GitHub Browser/Homepage หรือ GitHub Desktop

Imported to GitHub Dashboard แล้ว Click "Clone"

Application Clone เองใน System เร็วๆ นี้ Available as Repo บน GitHub Desktop

Launch "Git" (ดู Installation Steps ข้างบน) Follow Instructions บน GitHub Repo Page Download/Run Application

ตัวอย่าง: Simple Game

5. Contribute ให้ GitHub Community

อยาก Contribute? บน GitHub Saved Changes = "Commits" Edit "README.md" File อธิบายทำไม Change

Heart ของ GitHub Community: "Pull Requests" ทำ Changes บอก Author "Pull" Changes เข้า Repo เพิ่ม Maven File ตัวอย่าง

Pull Requests จาก GitHub Desktop ได้ด้วย

สรุป

GitHub Repositories = Awesome Secrets ของ Internet วันนี้ จาก Big Data, IoT, Industrial Apps, Fun Games ทุกอย่างอยู่ที่นี่ Guide นี้เริ่ม Tinkering Superapps ได้ทันที