git init 初始化一个git 仓库
git add 把文件添加到仓库
git commit 把文件提交到仓库
[root@localhost 222]# git init
重新初始化已存在的 Git 仓库于 /root/222/.git/
[root@localhost 222]# ls -al
总用量 0
drwxr-xr-x. 3 root root 18 11月 11 10:43 .
dr-xr-x---. 7 root root 255 11月 11 16:33 ..
drwxr-xr-x. 7 root root 119 11月 12 11:42 .git
[root@localhost 222]# vim aaa
[root@localhost 222]# git add aaa
[root@localhost 222]# git commit -m wang
[devd(根提交) 235c731] wang
1 file changed, 2 insertions(+)
create mode 100644 aaa
[root@localhost 222]#