# Reset git in app

**URL:** <https://www.ruby-forum.com/t/reset-git-in-app/154482>\
**Category:** Rails\
**Created:** [November 30, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/reset-git-in-app/154482 "2008-11-30T13:46:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [November 30, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/reset-git-in-app/154482/1 "2008-11-30T13:46:18Z")

</div>

I would like to reset a git in my app, so I thought that I could either  
do a reset to start, if that command exists, or delete and do another  
init? What can I do? If the latter; how do I remove git from an  
app/repository? Can I just delete the .git directory?

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [November 30, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/reset-git-in-app/154482/2 "2008-11-30T16:02:18Z")

</div>

PÃ¥l BergstrÃ¶m wrote:

> I would like to reset a git in my app, so I thought that I could either  
> do a reset to start, if that command exists, or delete and do another  
> init? What can I do? If the latter; how do I remove git from an  
> app/repository? Can I just delete the .git directory?

Yes. Git’s entire repository in inside the .git directory. If you want  
to be safe about it just clone your repository and remove the .git  
directory from the clone. That way if you decide you really wanted tat  
history you’ll have it in the original repository.

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [December 1, 2008, 11:25am UTC](https://www.ruby-forum.com/t/reset-git-in-app/154482/3 "2008-12-01T11:25:25Z")

</div>

Robert W. wrote:

> PÃ¥l BergstrÃ¶m wrote:

> Yes. Git’s entire repository in inside the .git directory. If you want  
> to be safe about it just clone your repository and remove the .git  
> directory from the clone. That way if you decide you really wanted tat  
> history you’ll have it in the original repository.

Thanks. 🙂
