間違いだらけの備忘録

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

check-ignore

予期せずgitignoreされてしまった原因の調査
http://qiita.com/marutanm/items/1401e15e249e8f48b645
http://git-scm.com/docs/git-check-ignore.html

# git --version
git version 1.7.10.4

# git check-ignore -v /opt/hoge/sbin/hoge.sh
git: 'check-ignore' is not a git command. See 'git --help'.

wheezy backportを使用
# git --version
git version 1.9.1
git check-ignore -v /opt/hoge/sbin/hoge.sh
.gitignore:9:sbin/      /opt/hoge/sbin/hoge.sh

めも

http://d.hatena.ne.jp/maeharin/20130206/gitignore

先頭に/

・その.gitignoreファイルと同階層にだけ適用される
・「/」はその.gitignoreファイルを基点としたパスのことであり、ファイルシステムのルートではない

めも
http://backports.debian.org/Instructions/

# cat /etc/apt/sources.list
(中略)
deb http://http.debian.net/debian wheezy-backports main

# apt-get -t wheezy-backports install "git"

めも

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