Part 4 - How to use .gitignore

· 6년 전 · 2075

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

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

 

 

|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

Git

+
제목 글쓴이 날짜 조회
6년 전 조회 1,637
6년 전 조회 1,775
6년 전 조회 1,925
6년 전 조회 1,914
6년 전 조회 1,849
6년 전 조회 1,445
6년 전 조회 1,855
6년 전 조회 1,980
6년 전 조회 2,366
6년 전 조회 1,660
6년 전 조회 2,043
6년 전 조회 1,713
6년 전 조회 1,705
6년 전 조회 1,808
6년 전 조회 2,076
6년 전 조회 1,804
6년 전 조회 1,520
6년 전 조회 1,839
7년 전 조회 1,707
7년 전 조회 1,623
7년 전 조회 2,054
8년 전 조회 6,156
8년 전 조회 1,919
8년 전 조회 3,096
8년 전 조회 1,719
8년 전 조회 1,359
8년 전 조회 1,396
8년 전 조회 1,920
8년 전 조회 2,447
8년 전 조회 1,447
🐛 버그신고