# clone git bare repo from local machne  to remote server.

**URL:** <https://forum.ansible.com/t/clone-git-bare-repo-from-local-machne-to-remote-server/20459>\
**Category:** Ansible Developer\
**Created:** [February 5, 2016, 3:28am UTC](https://forum.ansible.com/t/clone-git-bare-repo-from-local-machne-to-remote-server/20459 "2016-02-05T03:28:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praveen\_Singh](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@Praveen\_Singh](https://forum.ansible.com/u/Praveen_Singh)\
**Post date:** [February 5, 2016, 3:28am UTC](https://forum.ansible.com/t/clone-git-bare-repo-from-local-machne-to-remote-server/20459/1 "2016-02-05T03:28:06Z")

</div>

Hello,

I think cloning a private repository from GitHub to remote server is quite a hassle. The steps are:-

- Create ssh key
- add it Github ssh keys
- copy private and public key to the remote server and clone

Can I clone a git repo sitting on my local machine to remote machine?  
Can it be done using ansible git module?  
since I am already ssh-ing into remote machine

Cheers  
Praveen
