Giter VIP home page Giter VIP logo

learning-github's Introduction

Learning-Github

for Learning use Github by BorntoDev

link : https://youtu.be/fOlDcMStMXE?si=SZ6m4jAaE8V2TkxA

Note

  • Commit คล้ายกับการสร้างุจด Save Point ใน Game
  • in terminal: git checkout -b new-name-branch //สำหรับสร้าง branch
  • in terminal: git branch -D name-brach //สำหรับลบ branch
  • in terminal: git checkout name-branch //สำหรับสลับ brach ex. checkout main, checkout mean
  • in terminal: git commit -m "text"

  • Push คือการ Sync ข้อมูลจากในตัวเครื่องไปยังหน้าเว็บ Github
  • in terminal: git push origin main

  • Pull Request คือการส่งตัว branch ที่แยกออกมากลับเข้าสู่ main
  • in terminal: git pull

  • การ Merge ถ้าเข้า main โดยตรงจะไม่ผ่านการอนุญาตจากใคร แต่ถ้าใช้ pull request จะเป็นเหมือนการสร้างเว็บบอร์ดสำหรับคุยกัน แล้วจะมีคนที่ได้รับหน้าที่ให้อนุมัติ มาทำการ merge จาก brach แยกสู่ main
  • in terminal: git merge name-branch --no-ff

  • Issue คือประเด็น ปัญหา... จะเหมือนเว็บบอร์ดมากกว่า pull request แต่ pr จะเป็นลักษณะประมาณว่ากำลังจะรวมโค้ดกันแล้ว ช่วยมาดูหน่อย
  • in terminal: git checkout -b issue-number(task)
  • กรณีของ Open คือ ประเด็นหรือปัญหานั้น ยังคุยหรือจัดการไม่เสร็จ
  • กรณีของ Close คือ ประเด็นหรือปัญหานั้น คุยหรือจัดการเสร็จเรียบร้อยแล้ว

  • Conflict คือปัญหาระหว่างการทำงานแล้วจะเอาโค้ดขึ้น github เช่น แก้ไขไฟล์เดียวกันแล้วมันชนกัน จึงต้องเลือกจัดการในข้อความที่แสดงขึ้นมาของ conflict ว่าจะใช้ตัวไหน

learning-github's People

Contributors

siriphobmean avatar

Watchers

 avatar

learning-github's Issues

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.