# What does the --git option do?

**URL:** <https://www.ruby-forum.com/t/what-does-the-git-option-do/155347>\
**Category:** Rails\
**Created:** [December 10, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/what-does-the-git-option-do/155347 "2008-12-10T21:32:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacechurro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Post date:** [December 10, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/what-does-the-git-option-do/155347/1 "2008-12-10T21:32:28Z")

</div>

in starting a new project, i decided to try using the --git option to  
see what would happen…

i figured it might just make up a new project and put the whole thing  
under git control…

unfortunately, all i got was:

fatal: Not a git repository

everywhere…

can someone tell me exactly how this is used?

thanks!

---

<div class="post-metadata">

**Author:** ![spacechurro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Post date:** [December 10, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/what-does-the-git-option-do/155347/2 "2008-12-10T22:24:50Z")

</div>

If you do mkdir project && cd project && git init && rails . --git it  
will add all the rails files to a git repository.

* * *

Ryan B.  
Freelancer

> **[frozenplague.net](http://frozenplague.net)**
>
> This domain may be for sale!
