Git
はじめに モバイルの開発をしていて、クライアントとサーバを同じリポジトリにいれていました。ある時、クライアントとサーバとを別のリポジトリに分けたくなりました。その手順をメモします。 やりたいこと oldproject に client/ を残し、newproject には …
こちらを参考にしました。 Gitのリポジトリを移動させる方法 | ひたすらメモするだけのブログ 以下、手順です。 # 現在のリモートリポジトリを確認 $ git remote -v origin git@old.example.com:project.git (fetch) origin git@old.example.com:project.git…
コミット数の多い順にコミッターを表示するコマンド。気分転換に実行してみると楽しいかもしれません :)(追記 2011/9/6: id:thinca さんより、`git shortlog -sn` で多い順に出せることを教えていただきました。ありがとうございます!) $ git shortlog -s…
.gitignore と .gitkeep とを使い分けるためです。 - To use differently .gitignore and .gitkeep. $ rails new hoge # ... # create lib/tasks # create lib/tasks/.gitkeep # create log # ... Rails で使われていますね。 - It used by Rails.@idesaku …
現象 - Phenomenon $ bundle install # An error has occurred in git when running `git reset --hard xxx. Cannot complete bundling. 原因 - Cause install 先の git の参照が壊れているため。 - Because the git reference for install destination was …