1.安装
sudo apt-get install git-core
查看是否成功 git --version
2.配置
>#git config --global user.name "your name"
>#git config --global user.email "youraddr@xxx.com"
>#git config --global --list 查看配置是否生效
3.clone
git help
git help clone
git clone https://github.com/oceanshaw/sylife.git
4.添加,提交
添加新文件 :git add xx(*)
提交修改: git commit -a -m 'xxx'
提交到库: git push (default master)
look up manual
5.git push 出错解决
突然出了这个错误,文件太大了,感觉不太可能
error: RPC failed; result=65, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
可能下面这条命令可以解决,但也有可能是网络问题
git config http.postBuffer 524288000
转载于:https://www.cnblogs.com/oceanshaw/archive/2012/10/22/2798091.html