2015-08-01から1ヶ月間の記事一覧

git submoduleを間違ってあげたときの対処法

A git directory for 'git-tools/git' is found locally with remote(s): origin https://github.com/git/git.git If you want to reuse this local git directory instead of cloning again from https://github.com/git/git.git use the '--force' option.…

timezoneのエラーがでたときの対処法

\lib\Cake\Cache\CacheEngine.php の59行目に date_default_timezone_set('Asia/Tokyo'); を追加 自分の場合これで解決した 参考↓ cakephpでPHPのタイムゾーン設定してないとエラーが出る件hakomori.net

コミットを取り消す

ターミナルでのgit commit をやり直したいとき git reset --hard HEAD^ これで直前のcommitにもどる 参考↓ [Git]コミットの取り消し、打ち消し、上書き - Qiitaqiita.com

Untracked Files を一括で消す

git status でみたときにUntrackedファイルがあって消したいときの対処法 git clean --dry-run まずUntrackedファイルを確認 git clean -f 実際にUntrackedファイルを削除