1 git config --global user.name "Your Name" 2 git config --global user.email "email@example.com"
1 mkdir learngit 2 cd learngit 3 pwd 4 /Users/michael/learngit 5 初始化: 6 git init
1 #创建文件 2 vim readme.txt 3 cat readme.txt 4 Git is a version control system. 5 Git is free software. 6 #文件添加到仓库 7 git add readme.txt 8 #把文件提交到仓库 9 git commit -m "wrote a readme file"
原文:http://www.cnblogs.com/Dicky-Zhang/p/6250644.html