このブログは、旧・はてなダイアリー「檜山正幸のキマイラ飼育記 メモ編」(http://d.hatena.ne.jp/m-hiyama-memo/)のデータを移行・保存したものであり、今後(2019年1月以降)更新の予定はありません。

今後の更新は、新しいブログ http://m-hiyama-memo.hatenablog.com/ で行います。

git

magitのマニュアル

まとまっている。 http://magit.vc/manual/magit.html

magitによるリポジトリ生成とbitbucketへのプッシュ

M-x magit-init する。Magitバッファには、"In the beginning there was darkness" というメッセージ。 MagitバッファにUntracked filesがリストされているので、適当に選んで、s (staging)する。Staged changesにステージされたファイルが表示される。 u (u…

magit

magitを入れてみた。el-getでのインストールは失敗した。package.el使った。package.elやauto-installも必要なときがある。magit自体は、まだいいかどうかよくわからない。

gitリモートリポジトリの変更

http://d.hatena.ne.jp/kanonji/20110829/1314596493 に git remote set-url origin git@git.example.com:foo/bar.git とかのコマンドを使う旨書いてあるが、./.git/config に [remote "origin"] url = https://github.com/m-hiyama/hugo-sample.git fetch =…

gistの操作

GitHub gistのコマンドラインツールにRuby製のgistがある。Windowsでもインストールはできる。 > gem install gist Fetching: gist-4.4.2.gem (100%) Successfully installed gist-4.4.2 1 gem installed Installing ri documentation for gist-4.4.2... Ins…

git push時パスワード省略

sshじゃなくてhttpsのとき、 http://qiita.com/usamik26/items/c655abcaeee02ea59695 http://d.hatena.ne.jp/idesaku/20120128/1327749355 コマンド git config --global credential.helper cache これは設定はできるが、Windowsではまともに動かない。Windo…

gistよりgist-it

gistの使い方で色々と悩んでいたが、gist-it (https://gist-it.appspot.com/)でほぼ解決。gist-itは次の形のスクリプトでソース埋め込みが出来る。 '<script src="http://gist-it.appspot.com/' + githubのファイルパス名 + '"></script> 驚いたことにホントにこれで出来る! まー、驚くことじゃないが、驚いた。 <html> <head> <title>gist-it</title> </head> <body> <h1>gist-it</h1> </body></html>

git addし過ぎ

git add . これでたいていaddし過ぎ、GUI(source tree)から消すのもありだが、 git reset HEAD ファイル名 で、ステージングエリアから取り除ける。ファイル名を眺めて、.gitignoreを書き換えるのもいい。

MingwGIT

http://d.hatena.ne.jp/m-hiyama/20110302/1299029346 以来、しばらく使ってなかった。使えなくなっていた。/c/Installed/msysgit/ 以下に入っているが、パスがいってない。/c/Installed/msysgit/bin/git を直接呼んだら、libiconv-2.dll がないと言う。/c/I…