Part 4 - How to use .gitignore > Git

Git

Part 4 - How to use .gitignore 정보

Part 4 - How to use .gitignore

본문

라라벨 프로젝트를 하나 만들어서

composer create --prefer-dist laravel/laravel giting_started

 

라라벨 디렉토리 안에서 Public으로 가지 말아야 될 것

.env : DB 패스워드및 여러가지 정보가 들어가 있음.

vendor 디렉토리

node_modules 디렉토리 등.

 

.gitignore 디폴트로 들어가 있는 것들

/node_modules

/public/hot

/public/storage

/storage/*.key

/vendor

.env

.phpunit.result.cache

Homestead.json

Homestead.yaml

npm-debug.log

yarn-error.log

 

git init

git add .

git commit -m "Initial commit"

 

각각의 프로젝트별 ignore해야 될 것은 참조: https://github.com/github/gitignore

 

 

추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로