luojiahu@ubuntu:~/learning/learngit$ git config --global user.name "luojiahu"
luojiahu@ubuntu:~/learning/learngit$ git config --global user.email "luojiahu@yeah.net"
luojiahu@ubuntu:~/learning/learngit$ git init
Initialized empty Git repository in /home/luojiahu/learning/learngit/.git/
luojiahu@ubuntu:~/learning/learngit$ git add ReadMe.txt
luojiahu@ubuntu:~/learning/learngit$ git commit -m "add a readme file."
[master (root-commit) 849bbd2] add a readme file.
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 ReadMe.txt
原文:https://www.cnblogs.com/luojiahu/p/9551516.html