# Deploy to staging env. without remote Git Repo

**URL:** https://discourse.roots.io/t/deploy-to-staging-env-without-remote-git-repo/6267
**Category:** trellis
**Created:** 2016-03-22T17:59:50Z
**Posts:** 4

## Post 1 by @jecko — 2016-03-22T17:59:51Z

Hi,

I don’t plan to do it but just by curiosity, can we deploy to remote staging env. by using our local Git Repo? I mean, if I don’t have a remote Repo on Github or Bitbucket, could I use the local one?

Like put a local path in wordpress.yml file

Hope this question has value for someone.

Thank you

---

## Post 2 by @kalenjohnson — 2016-03-22T18:26:27Z

I might be wrong, but I don’t think that will work. When deploying, the git repository is pulled using git, there is no file transfer (other than files you set to transfer, like compiled theme asset files). Every deploy a git pull is done to get the latest code.

You can always use a git repository like Bitbucket to keep projects private but on an external server.

---

## Post 3 by @swalkinshaw — 2016-03-22T18:46:25Z

Won’t work without modifications as @kalenjohnson mentioned.

---

## Post 4 by @jecko — 2016-03-22T19:10:49Z

Ok thank you for your answers guys.
