标签:
zhangliuningdeMacBook-Pro:WorkPath sherry$ mkdir GitHomeTest zhangliuningdeMacBook-Pro:WorkPath sherry$ cd GitHomeTest/ zhangliuningdeMacBook-Pro:GitHomeTest sherry$ git init Initialized empty Git repository in /Users/sherry/WorkPath/GitHomeTest/.git/
或者直接
git init ./GitHomeTest 也行,会自动创建目录,要求Git版本在1.6.5以后
zhangliuningdeMacBook-Pro:GitHomeTest sherry$ git add welcome.txt
zhangliuningdeMacBook-Pro:GitHomeTest sherry$ git commit -m "添加一个测试文件" [master (root-commit) 9a17716] 添加一个测试文件 1 file changed, 1 insertion(+) create mode 100644 welcome.txt
zhangliuningdeMacBook-Pro:GitHomeTest sherry$ git status
On branch master
nothing to commit, working directory clean
git clone 目录
标签:
原文地址:http://www.cnblogs.com/sherrykid/p/5946923.html