2012-07-05から1日間の記事一覧
http://keijinsonyaban.blogspot.jp/2011/05/git.html http://newartisans.com/2008/04/git-from-the-bottom-up/ 安全策でいくなら、必ず git stash を最初に走らせてから git reset --hard を使うことだ。 (中略) もしあなたがワーキングツリーにハックをや…
http://d.hatena.ne.jp/tbrook/20100627/1277597545 確認 $ git remote -v変更 git remote set-url --push origin push先target.git
修正したいメッセージのcommitが4件前の場合 git rebase -i HEAD~4起動したエディタで対象のpickをrに変更 # Commands: # p, pick = use commit # r, reword = use commit, but edit the commit message # e, edit = use commit, but stop for amending # s,…
http://d.hatena.ne.jp/okmount/20091021/p1 直前のコミットをやり直したいときは、git commit --amend を使うと可能だ。そして、さらに昔のコミットをやり直す(書き換える)ときは、git rebase -i を使う。 めも、未検証
test -z "`git status --porcelain`"めも、未検証