forked from greendog99/greendog-rails-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_git.rb
57 lines (49 loc) · 684 Bytes
/
_git.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Create a .gitignore file and a new local repository, commit everything
puts "Initializing new Git repo ...".magenta
remove_file '.gitignore'
file '.gitignore', <<-CODE.gsub(/^ {2}/, '')
## OS
.DS_Store
Icon?
nohup.out
.bak
## EDITORS
\#*
.\#*
*~
*.swp
REVISION
TAGS*
tmtags
*_flymake.*
*_flymake
*.tmproj
.project
.settings
mkmf.log
## COMPILED
a.out
*.o
*.pyc
*.so
## OTHER SCM
.bzr
.hg
.svn
## PROJECT::GENERAL
coverage
rdoc
doc
pkg
.yardoc
*private*
.bundle
.vendor
db/*.sqlite3
log/*.log*
tmp/**/*
config/database.yml
CODE
git :init
git :add => "."
git :commit => "-am 'Initial commit.'"