I have a personal laptop and a dev box and want a setup with following things in mind:
- I want to have my code working on both machines. (That means I cannot have
--bare
repo.) - I want to develop on my laptop
- I want to push to dev box from time to time.
- This is mainly for web development.
I tried initializing a Git repo with code on dev box and cloned in on my laptop. I could not push changes to dev box though. It gives me the error that I am pushing to a non-bare repo.
Then I tried --bare
repo and it worked but then I cannot run the code sitting on dev box (or can I)?
Any ideas on how to achieve this kind of setup?
Thanks.