【Rails】gitignoreでコンフリ回避(簡易メモ)


/db/*.sqlite3
このファイルがあると必ずコンフリクトが起きるので、
.gitignoreに記述する。


.DS_Store
macを使っている方はコンフリクトが起きるので、こちらも.gitignoreに記述しましょう

.gitignore

省略、、、
/.bundle

# Ignore the default SQLite database.
/db/*.sqlite3                 ←ここに追加
/db/*.sqlite3-journal

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
# Ignore uploaded files in development
/storage/*
!/storage/.keep
/node_modules
/yarn-error.log
/public/assets
.byebug_history
# Ignore master key for decrypting credentials and more.
/config/master.key

.DS_Store  ←ここに追加

この記事が気に入ったらサポートをしてみませんか?