# Basic git module now available, prob needs upgrades

**URL:** <https://forum.ansible.com/t/basic-git-module-now-available-prob-needs-upgrades/11309>\
**Category:** Ansible Project\
**Created:** [February 28, 2012, 1:31am UTC](https://forum.ansible.com/t/basic-git-module-now-available-prob-needs-upgrades/11309 "2012-02-28T01:31:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 28, 2012, 1:31am UTC](https://forum.ansible.com/t/basic-git-module-now-available-prob-needs-upgrades/11309/1 "2012-02-28T01:31:23Z")

</div>

woohoo, git module.

I didn’t teach it to do anything about switching to different branches, so right now it mostly requires that you specify the following  
three parameters:

dest – where to check things out as an absolute filesystem path  
repo – a git:// or http:// location  
version – “HEAD” or a SHA or a tag

I didn’t test tags really, they might not work.

This was mostly a proof of concept but should be easy to upgrade if you need to specify a branch. At the moment, it’s not a priority for me, but  
if someone is a git wizard and would like to upgrade it, improvements are very welcome.

OT – I noticed myself not finding a good way to work the ensure mechanic in here, so I’m thinking of just calling “ensure” for service module “state”.  
Seems cleaner. That coming soon, I’ll update the docs when I add the docs for this module as well. I will stop being OCD about the module params  
after that 🙂

–Michael
