So I've been working at getting a Windows 2008 EC2 instance up and running, along with git as a remote repository to push my project to the server live. Here are the steps I've followed:
- Create Windows EC2
- Install git & cygwin (with openssh)
- Add the required ports, firewall exceptions.
At this point, I can SSH into my server remotely and init repo's just fine. I'm now using this blog post to setup my remote repository. Followed these steps:
Locally:
git clone
project from another sourcegit remote add production ssh://[USER]@[SERVER]/oneplant.git
Remotely:
create the post-receive hook and chmod it with +x:
#!/bin/sh GIT_WORK_TREE=C:/inetpub/wwwroot git checkout -f
Lastly, I call git push production +master:refs/heads/master
locally and login, it returns with this command:
git: '/oneplant.git' is not a git command. See 'git --help'
fatal: The remote end hung up unexpectedly
I've been trying to search the web for this but I'm not exactly sure what I've done wrong, hopefully someone can lead me in the right direction.