Before it is so http://blog.csdn.net/commshare/article/details/20526369, the feeling of thinking is still not very clear.
A new project is being built today, and a warehouse is needed.
The empty warehouse that was created with Git--bare init cannot be git add,
Will complain Fatal:this operation must is run in a work tree.
However, it is said that the use of Git init can.
There are several solutions,
Reference http://blog.sina.com.cn/s/blog_630bf12f0100nl7i.html
Reference Http://stackoverflow.com/questions/1456923/why-am-i-getting-the-message-fatal-this-operation-must-be-run-in-a-work-tree
===============
What I have chosen is:
Warehouse with git--bare init,
and my actual engineering directory with GIT init,git Remote add origin, git add a file, git commit, git push,
The remote warehouse is OK.
With Gitweb can also be smooth to see.
==================