Git Product home page Git Product logo

2022.engedu.com-lab-i-labsheet-4's Introduction

ใบงานที่ 4 การใช้งาน git clients

1. แนะนำใบงาน

ใบงานนี้จะพานักศึกษามาทำความรู้จักกับ git clients ซึ่งจะใช้ระบบปฏิบัติการ Windows 10-11 เป็นหลัก นักศึกษาที่ใช้ OS อื่นๆ สามารถนำแนวทางไปใช้ได้ตามลักษณะเฉพาะของ OS นั้นๆ

เนื่องจาก git เป็นโปรแกรมควบคุมรุ่นที่ยิยมใช้อย่างแพร่หลาย จึงมี git client ให้เลือกใช้ได้หลายตัว ขึ้นอยู่กับลักษณะของงานและการแก้ปัญหาที่เกิดขึ้นเฉพาะหน้า เนื่องจาก git client แต่ละตัวจะมีความสามารถที่แตกต่างกันไป

ถ้าแบ่งตามประเภทในการใช้งาน เราจะพบว่า git client มี 2 พวกใหญ่ๆ คือ

  1. git client แบบ stand alone 1.1 git client ชนิด terminal เช่น git bash หรือ terminal ของ OS ต่าง ๆ 1.2 git client ชนิด GUI เช่น github desktop และอื่น ๆ
  2. git client ที่ผนวกเข้ากับ IDE เช่น Visual studio, visual studio Code, Eclipse เป็นต้น

1. Git Clients แบบ stand alone

1.1 Git bash หรือ terminal based (เช่นใน Unix, Linux, MacOS)

Git bash เป็นโปรแกรม GNU Bash ตัวหนึ่งที่มีลักษณะเป็น Terminal ที่รองรับคำสั่ง git มีให้ใช้ทั้งบน Windows, macOS และ Linux/Unix ดูรายละเอียดได้จาก https://git-scm.com/

รูปที่ 1 โปรแกรม git bash

ถึงแม้ผู้พัฒนาตั้งใจสร้าง git bash เพื่อให้ทำงานเป็น commanf line tool แต่ก็ได้ผนวกเอา Application ที่เป็น GUI ติดมาด้วย (ชื่อว่า Git GUI) โดยจะมีส่วนติดต่อผู้ใช้แบบกราฟฟิกส์ สำหรับการ commit, push, pull และอื่น ๆ

ตัวอย่างโปรแกรม git GUI

1.เรียกโปรแกรม git GUI และเปิด repository ที่เคยได้ clone ไว้ใน harddisk

รูปที่ 2 โปรแกรม git Gui (เปิด repository ใน harddisk)

2.ลักษณะของโปรแกรม git GUI ที่มาพร้อมกับ git bash

รูปที่ 1 ลักษณะของโปรแกรม git GUI

นอกจาก git GUI แล้วยังมีโปรแกรม git GUI Clients อีกหลายตัว ทั้งชนิดที่ฟรีและมีค่าใช้จ่ายสำหรับหารซื้อ License

1.2 Git GUI Clients

ถึงแม้ว่า Git จะมาพร้อมกับเครื่องมือ GUI ในตัว สำหรับใช้ในการทำงานต่างๆ กับฝั่ง local และ remote (git-gui) แต่มีเครื่องมือของผู้พัฒนารายอื่น หลายเจ้า สำหรับให้เลือกใช้ตามลักษณะงานและ operating system หรือ platform ดังรูปที่ 4

รูปที่ 1 ตัวอย่างเครื่องมือ git gui ของผู้พัฒนารายอื่น

(ดูรายละเอียดได้ที่ https://git-scm.com/downloads/guis และ https://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools)

2022.engedu.com-lab-i-labsheet-4's People

Contributors

koson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.