I'm currently trying to follow the small project based work-group mentioned in the Pro Git book : http://progit.org/book/ch5-2.html
So, here's my set-up:
[Live Website Folder]
| |
| |
Developer1 Developer2
The way that I achieved that was I did the following:
- git init --shared=0777
- git clone /live/website developer1
- git clone /live/website developer2
I was able to successfully clone my project and I went into developer1
folder. Here I make changes to my file index.html
. Once, I make these changes, I do:
git add index.html
git commit -m 'Modified index.html --developer1'
git push
Now when I go to my /live/website
directory and do a git status
, it correctly tells me that the file index.html
is modified. When I do:
git add index.html
git commit -m 'Modified index.html by developer1'
It successfully makes the commit, but when I try to vi index.html
, the file that I see is the original/un-modified one. I don't see the changes made by developer1, within that file. Is this expected behavior?