I am trying to setup a simple GIT server. I have Ubuntu installed on a Virtual PC (Virtual Box). I installed GIT, created a repo etc
git init
git add .
git commit "..."
Then on Windows, I did something like below (on cygwin)
git clone [email protected]:proj1
Tried making changes then
git commit -am "..."
but got something like
I suppose I have setup GIT wrong? I read its something to do with bare/non-bare repos? Should I use bare all the time? I tried
git checkout --bare [email protected]:proj1
but got proj1.git
in it, wierd files/folders like (HEAD etc) within. Whats the proper way of setting up GIT?
also can someone explain bare/non-bare repos, I'm kind of lost, with GitHub, there isn't such a thing!
UPDATED 28 Apr 2011 6PM UTC+8
I tried following http://www.youtube.com/watch?v=1gNFrPNF9-Y and on Ubuntu (Server) did
git init --bare
then on Windows (Client/Cygwin) did
git init
// added readme.txt
git add .
git commit -m "..."
git remote add origin master [email protected]:proj2
git push origin master
no errors seems ok. But on Ubuntu, I dont see where are my files? I looked at branches/
for 1 theres nth in there?