# ------Git初始化空版本库[root@programer ~]# ls# 初始化空版本库[root@programer ~]# git init myproject
Initialized empty Git repository in /root/myproject/.git/
[root@programer ~]# ls
myproject
# 查看版本库信息[root@programer ~]# ls -a myproject/... .git
[root@programer ~]# ls -a myproject/.git... HEAD branches config description hooks info objects refs
# ------将已胡目录制作成版本库[root@programer ~]# mkdir mytest[root@programer ~]# ls -a mytest...[root@programer ~]# cd mytest# 将已有空的目录初使化为git库[root@programer mytest]# git init
Initialized empty Git repository in /root/mytest/.git/
[root@programer mytest]# ls -a... .git
[root@programer mytest]# ls -a .git... HEAD branches config description hooks info objects refs