1043 cd
1044 mkdir git
1045 cd git
1046 mkdir object
1047 cd object/
1048 ls
1049 git config --global user.name "zongzengqiang"
1050 git config --global user.email "zongzengqiang2008@163.com"
1051 git init
1053 mkdir dir1
1054 git add dir1
1055 git add .
1056 git commit
1057 cd dir1/
1058 touch zong
1059 git add .
1060 cd ..
1061 git commit
1062 git log
1063 git show
1044 mkdir git
1045 cd git
1046 mkdir object
1047 cd object/
1048 ls
1049 git config --global user.name "zongzengqiang"
1050 git config --global user.email "zongzengqiang2008@163.com"
1051 git init
1053 mkdir dir1
1054 git add dir1
1055 git add .
1056 git commit
1057 cd dir1/
1058 touch zong
1059 git add .
1060 cd ..
1061 git commit
1062 git log
1063 git show
1064 git branch
创建本地项目
1066 cd ..
1067 mkdir repos.git
1068 cd repos.git/
1069 ls
1070 git init --bare
1071 ls
1076 cd object/
1077 git push /home/zong/git/repos.git/
1078 git push /home/zong/git/repos.git/ master
上传到本地repos.git/ 将object
1096 git clone /home/zong/git/repos.git
1088 cd repos/
1090 touch abc
1091 git add abc
1092 git commit -m "add abc"
1093 git remote
1094 git push origin master
下载object
1016 sudo yum install git-daemon
1032 touch repos.git/git-daemon-export-ok
1036 sudo git daemon --reuseaddr --base-path=/home/zong/git/ &
1044 git clone git://localhost/repos.git
有git协议下载