自分メモ

色々な不具合が出てきて面白い。以下いくつかメモ。

git rm の取り消し

すぐにぱっと思いうかばなかったのですが、staging されてるナニを取り消すので

  • git reset HEAD ファイル名
  • git checkout ファイル名

で良かったのか。以下を参考にさせて頂きました。感謝を込めて。

git push 時の不具合

以下なエラー。

$ git push origin master
fatal: 'hoge' does not appear to be a git repository 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

.git/config 見たら以下になっていた。

[remote "origin"]
    url = hoge

これはこれは。