Friday, March 4, 2016

วิธีสร้าง local .gitignore

  • เปิด Terminal แล้วเข้าไปที่ Fodel ที่ต้องการสร้าง .gitignore
  • พิมพ์ touch .gitignore สำหรับสร้าง .gitignore ไฟล์.

ตัวอย่างการกำหนดค่า  .gitignore


# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

No comments:

Post a Comment