by shigemk2

当面は技術的なことしか書かない

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

ファイル名の大文字小文字は区別しない

Git

たとえば、hoge.txtというファイルがレポジトリの中にあったとして、 HOGE.txtにファイル名をリネームしても、ファイル名の変更は gitは追跡してくれない。しかし、ファイル名自体は変わっているので、プログラムで エラーになる可能性はかなり高い。どうし…

for文を1行で書く

for x in [1,2,3,4,5]: print x

hookってgitで追跡されるのか

Git

githooks - Tracking changes to hooks in .git/hooks - Stack OverflowMeta Magic: Git Hooks Files in the .git/hooks directory are not part of the repository and so they are not tracked. A workaround is to have a git_hooks directory at the top…