railsで新しく作り始めましたが、ファイル・フォルダを追加してもgit diff反応しません。
git statusを打つと、以下のように表示されます。
On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean
調べて↓のような方は見つけましたが、
https://teratail.com/questions/15885
似ているけど違うと思います。
環境はmacbook pro 2018 + vagrant + ubuntu 18.04 + tmuxで、環境構築でうまくいかずいろんなサイトから情報をつまみ食いしてるのも原因かと思います(ただ、ローカルでも同じ現象が起きてます)。問題がありそうな点がありましたらご教示いただきたいです。何卒よろしくお願いいたします。
.gitの中身 " ============================================================================ " Netrw Directory Listing (netrw v162) " /Users/usr0101677/vm/environment/project/sample_app/.git " Sorted by name " Sort sequence: [/]$,\<core\%(.\d+)\=\>,.h$,.c$,.cpp$,\~\=*$,*,.o$,.obj$,.info$,.swp$,.bak$,\~$ " Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:special " ============================================================================== ../ ./ branches/ hooks/ info/ logs/ objects/ refs/ HEAD config description index packed-refs
.gitignoreの中身 # ignoring files. # # If you find yourself ignoring temporary files generated by your # text editor or operating system, you probably want to add # a global ignore instead: # git config --global core.excludesfile '~/.gitignore_global' # Ignore bundler config. /.bundle # Ignore the default SQLite database. /db/*.sqlite3 /db/*.sqlite3-journal # Ignore all logfiles and tempfiles. /log/* /tmp/* !/log/.keep !/tmp/.keep # Ignore Byebug command history file. .byebug_history # Ignore Spring files. /spring/*.pid ~
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。