git上拉取项目

0、自己百度生成SSHKEY

查看现在的SSHKEY

cat ~/.ssh/id_rsa.pub

 

配置新的SSHKEY

ssh-keygen -t rsa -C "xxxx@xxxx.com"

 

1、git上添加SSHKEY,添加好了

测试:

ssh -T git@git.XXXX.com

会有成功提示。

 

 

2、通了之后拉代码:

git clone git@199.166.10.33:wangshuyuan/iossongjiangdai.git

或者

git clone http://git.xxxx.com/wangshuyuan/caogendangjia.git

 

git提交文件过大

git config --global http.postBuffer 524288000

 

 

如果要修改SSHKEY邮箱:


Command line instructions
Git global setup
git config --global user.name "wangshuyuan"
git config --global user.email "shuyuan.wang@xxxx.com"



posted @ 2017-05-18 15:56  预估计  阅读(2393)  评论(0编辑  收藏  举报