git

git fetch --prune

git

git fetch リモードのブランチは最新にならない場合、pruneのオプションをつける git fetch --prune

GITコミットコメント修正

git

直前のコミットのコメントだけを修正したい git commit --amend インデックスにファイルを登録していない状態で --amend オプションを指定して再コミットを行います。コメントの入力画面が表示されるので、コメントを修正します。

git設定

git

$ git config --global color.diff auto $ git config --global color.branch auto $ git config --global color.status auto $ git config --global color.interactive auto $ git config --global alias.st status $ git config --global alias.br branch …

mac git バージョンアップ

参考URL:http://qiita.com/d_nishiyama85/items/d63da1e50405abc0929c アップデート前のバージョンは、 $ git --version git version 1.7.9.6 (Apple Git-31.1) ・公式サイト http://git-scm.com/ に行き、"Download for Mac" のボタンから .dmg ファイルを…

git 管理しないファイル・フォルダ削除

git

ファイル削除する場合 git clean -f フォルダ削除する場合 git clean -df