タグ

2015年2月5日のブックマーク (4件)

  • git-resetは結局何を戻すのか - Qiita

    次の項から、この[--soft | --hard]及び[HEAD | HEAD^]がどういう意味を持つのか、まとめてみる。 HEADとHEAD^ この部分は、「状態をどこまで戻すか」の指定をしている。HEADとHEAD^はそれぞれ、最新のコミットの位置・そのひとつ前のコミットの位置を指す。 ただしHEADは、ここの図では「どこまでコミットしているか」という意味で使われているので、すこしこんがらがった。そりゃぁ最新のコミットという意味なので、そういうことなんだけど。 なお、ここにはコミットのidを入れてももちろんOK。HEADとHEAD^は代名詞なんですね。 --softと--hard git resetはともかく、状態を前に戻すコマンド。しかしgitにおける「状態」は、 HEAD (現在の最新コミットの状態) index (何をaddしたか・addした時点でのファイルの状態) workin

    git-resetは結局何を戻すのか - Qiita
  • git reset についてもまとめてみる - murankの日記

    前回 git diff を図に書いてみたところ、自分の中で意外と整理できたので、これまたなんとなく使っていた git reset についてもまとめてみた。 とりあえず結論を先にまとめよう。 git reset とは? HEAD の位置を変更するコマンド。 オプションによってインデックス、ワーキングツリーの内容も変更できる。 git reset のオプションは? --soft、--mixed(オプションなしと同等)、--hard オプションがあり、影響度の小さい順に以下のようになる。 --soft HEAD の位置のみを変更する。インデックス、ワーキングツリーには影響なし。 --mixed (またはオプションなし) HEAD の位置とインデックスを変更する。ワーキングツリーには影響なし。 --hard HEADの位置、インデックス、ワーキングツリーをすべて変更する。 さて、git reset

    git reset についてもまとめてみる - murankの日記
  • log.ezura.asia

    ただいま、サイトの再構成に伴い、ブログ「log.ezura.asia」のアドレスを転送します... http://ezura.jugem.jp/

    log.ezura.asia
  • If you watch Isis’s videos you are complicit in its terrorism | Nesrine Malik

    Media organisations face a particular dilemma, as the atrociousness arguably makes the crimes even more newsworthy. But any decision to transmit these images takes us into difficult territory. When Fox News posts all of the footage with the warning “extremely graphic video” attached, one could be forgiven for thinking that a steadfast commitment to truth-telling isn’t the only factor at play. But

    If you watch Isis’s videos you are complicit in its terrorism | Nesrine Malik