Giter Club home page Giter Club logo

week-15's Introduction

Week 15

Learning git ignore

Job description

  1. สร้าง repository ของตนเอง โดยสมติให้มีไฟล์ index.php และ password.php และทำการยับยั้ง (ignore) ไม่ให้มีการส่งไฟล์ password.php ขึ้นไปบน remote repository (ใน commit แรกให้ push ไฟล์ password.php ขึ้นมาด้วย)

  2. สร้าง repository ของตนเอง แล้วสร้าง project ในภาษา C# ด้วย visual studio (ยังไม่ต้อง build project)

Commit งานที่ต้องทำ
1 push ไฟล์ทุกอย่างไว้บน remote repository
2 ignore folder ชื่อ .vs
3 build project แล้วทำการ ignore ไฟล์ที่เกิดจากการสร้างโดย Visual studio
4 ให้ push ไฟล์ *.exe ขึ้นบน remote repository เพื่อให้ผู้คนที่ไม่มี Visual Studio ติดตั้งอยู่สามารถโหลดไปใช้งานได้
  1. สร้าง repository ของตนเอง ที่มี gitignore ในภาษา python แล้วนำงานทั้งหมดที่ลงแล็บในครึ่งเทอมแรกมาใส่ไว้ใน repo นั้น

  2. ส่งงานโดยการเขียน link ไปยัง repo ไว้ในไฟล์ .md (เช่น 63030004.md) แล้ว Pull Request มาใน repo นี้


หมายเหตุ การลบไฟล์ที่ไม่ต้องการออกจาก local repo

  git rm -r --cached .
  git add .
  git commit -m"remove files in  git ignore list"
  git push 

ข้อควรระวัง ก่อนทำการ Pull Request ให้ตรวจสอบก่อนเสมอว่า Local และ remome repository ของตนเองได้ทำการ sync กับ update ล่าสุดของ upstream มิฉะนั้นอาจจะไปลบ folder ของ Pull request ที่เพื่อนเพิ่งจะเพิ่มเข้าไป

image

image

No Action
1 คลิก Fetch Upstream
2 คลิก Fetch Fetch and merge

week-15's People

Contributors

koson 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.