使える git コマンドまとめ
関係ないファイルがgitで管理されてしまった場合、そのファイルを.gitignoreに追記し、以下のコマンドを実行する事でgit管理外となる。
$ git add .gitignore $ git commit -m "Add ignore pattern"
$ git rm --cached `git ls-files --full-name -i --exclude-from=.gitignore`
$ git status
$ git commit -m "Remove ignore files"