# What exactly is a git repository?

**URL:** <https://forums.kodeco.com/t/what-exactly-is-a-git-repository/18868>\
**Category:** iOS Apprentice\
**Created:** [August 24, 2016, 12:52pm UTC](https://forums.kodeco.com/t/what-exactly-is-a-git-repository/18868 "2016-08-24T12:52:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adn](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/adn/32/68878_2.png) [@adn](https://forums.kodeco.com/u/adn)\
**Post date:** [August 24, 2016, 12:52pm UTC](https://forums.kodeco.com/t/what-exactly-is-a-git-repository/18868/1 "2016-08-24T12:52:11Z")

</div>

I am having a little trouble visualizing a git repository.

1. Does each project get its own git directory (repository)?
2. Are different branches of a project contained within the same repository?

---

<div class="post-metadata">

**Author:** ![jonny](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jonny/32/79544_2.png) [@jonny](https://forums.kodeco.com/u/jonny)\
**Post date:** [August 24, 2016, 5:38pm UTC](https://forums.kodeco.com/t/what-exactly-is-a-git-repository/18868/2 "2016-08-24T17:38:46Z")

</div>

A git repository is basically a folder inside your project that tracks changes across the code. In most systems it’s a hidden .git folder.

branches are versions of code. So you’ll usually have a Master branch, but then you could have one or multiple branches for things.

So you might have a branch called development where you work on the next iteration of a project. Once you’ve done all you need to do and tested it, you push that development branch to the master branch.
