Skip to content

Instantly share code, notes, and snippets.

@hiono
Created March 12, 2014 02:57
Show Gist options
  • Save hiono/9499955 to your computer and use it in GitHub Desktop.
Save hiono/9499955 to your computer and use it in GitHub Desktop.
gitで自分用テンプレートを使う ref: http://qiita.com/highfrontier/items/43831e0d8fa490fc26ee
$ tree $HOME/work/.git_template
/home/XXX/work/.git_template
-- hooks
-- post-flow-release-finish
`-- post-flow-release-start
`-- info
`-- exclude
2 directories, 3 files
/tmp$ rm -rf test
/tmp$ mkdir test
/tmp$ cd test
/tmp/test$ touch a
/tmp/test$ git init --template=$HOME/work/.git_template
Initialized empty Git repository in /tmp/test/.git/
/tmp/test$ tree . .git
.
`-- a
.git
-- HEAD
-- config
-- hooks
-- post-flow-release-finish
`-- post-flow-release-start
-- info
`-- exclude
-- objects
-- info
`-- pack
`-- refs
-- heads
`-- tags
8 directories, 6 files
/tmp/test$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment