shell
カレントディレクトリでのファイル内パス置換 ../を../../にする find . -type f -print0 | xargs -0 sed -i -e "s/\.\.\//\.\.\/\.\.\//g"
<W> fish: An error occurred while redirecting file '/Users/shinriyo/.rbenv/version' open: No such file or directory rbenv global 2.4.1 のコマンド。 それで消えた。</w>
git ls-files --others --exclude-standard | grep '.meta' | sed 's/\.[^\.]*$//' | xargs rm -rf
git ls-files --others --exclude-standard | grep .meta | sed -e 's/.meta//g' | xargs rmdir;git clean -f のコマンド。 解説 git ls-files --others --exclude-standard が、untrackの一覧が出る。 そして↓コマンドでその中から.metaのを抽出 grep .meta…