How can I setup a git repository on a local system ? (I am on a windoze box)
This is the setup I am trying to achieve: (everything is on my local machine)
- host folder (which acts like central repository)
- client folder
I want to do all my dev in the client folder. Once I am done, I'd like to push it to the host folder.
This is what I've done: (using git bash on windows)
- cd d:/adinsert
- mkdir host
- cd host
- git init
cd c:/
- mkdir client
- cd client
- git init
- git remote add origin d:/host // Added some files in client folder and commited them
- git push origin master
When I push stuff to origin, git spits a lot of remote errors. However, when I make my host a bare git, it pushes successfully.
I don't understand the difference between regular git and bare git. From the manual, all I understood was, bare git is used for storing deltas and when you don't want to store original files. However, I'd like to store the files in host. How can I do that ?