Reading answers to this question, we learn that changes in git are stored in .git that resides in the project's root directory. But in a normal Rails app I cannot see .git anywhere.
Asked
Active
Viewed 351 times
0
Community
- 1
- 1
Fellow Stranger
- 32,129
- 35
- 168
- 232
-
Did you create git repository in this project's main directory? – Marek Lipka Oct 23 '13 at 10:09
3 Answers
2
.git directory is created by git, not rails.
If you don't use git to manage your rails project, there will no .git of course.
xdazz
- 158,678
- 38
- 247
- 274
1
On Windows, we have a folder called /.git -> this is built when we use the git add . & git commit commands. Here's a picture of it for you:

Richard Peck
- 76,116
- 9
- 93
- 147
-
Thanks to you and to this http://superuser.com/a/430265 I realized it was my editor that choose to not show it. (Mac doesn't natively show hidden files.) – Fellow Stranger Oct 23 '13 at 10:27
1
If you use rails new app --git rails will not create a .git directory.
Usually the .git directory is a hidden folder. Under linux and mac you can show all folders and files with the ls -la command.
Mindbreaker
- 1,015
- 1
- 9
- 23