間違いだらけの備忘録

このページの内容は無保証でありこのページの内容によって直接、または間接に損害を受けられたとしても私は責任を取りません。

2013-08-29から1日間の記事一覧

独自のサブコマンド(あるいはちょっと複雑なalias)を定義する際のtips

git

http://whileimautomaton.net/2009/05/08003459 めも、未検証

patch コマンドで tab と space の違いを無視する

git

http://pooh.gr.jp/?p=5599 http://linuxjm.sourceforge.jp/html/GNU_patch/man1/patch.1.html l または --ignore-whitespace タブやスペースが変更されている場合のために、パターンの一致をゆるく見る。パッチファイル中の 1 個または複数の空白の並びはオ…

tabを変換してcommit

git

git format patchで対象を出力 変換hookを入れる $ cat .git/hooks/pre-commit #!/bin/bash if git rev-parse --verify HEAD >/dev/null 2>&1 then against=HEAD else # Initial commit: diff against an empty tree object against=4b825dc642cb6eb9a060e54…

amendで前回のコミットメッセージを流用

git

$ git commit --amend -C HEAD参考 http://blog.s21g.com/articles/1622 http://www.jukie.net/~bart/blog/git-amend

cherry-pickで空白を無視,改行コードを変換

git

SHA1は"abc123"とする。 $ git show -w abc123 |nkf --unix -w | patch -p1 $ git commit -a -C abc123Git cherry-pick without whitespace http://stefaanlippens.net/git-cherry-pick-without-whitespace

このページにはhatena以外のサービスからのコンテンツが埋め込まれています。 hatenaによりGoogle AdSense 広告が埋め込まれています。