1,由于防火墙可能封住,所以git clone git@github.com/xxx.git时可能会超时,
 
换端口,或者换协议用git clone https://github.com/tianyahechy/spark.git 就顺利下载了
 
2,再测试,发现已经连上了远程本地仓库,
 
$ git remote -v origin  https://github.com/tianyahechy/spark.git (fetch) origin  https://github.com/tianyahechy/spark.git (push)
 
 
 
3,可是,我要给对方提交,所以还要连对方的远程仓库
 
$ git remote add upstream https://github.com/xxx/spark.git
 
4再次查看远程连接
 
$ git remote -v
 
origin  https://github.com/tianyahechy/spark.git (fetch) origin  https://github.com/tianyahechy/spark.git (push) upstream        https://github.com/XXX/spark.git (fetch) upstream        https://github.com/xxx/spark.git (push)
 
说明已经连接上对方的远程仓库了
 
5,添加一个hello.txt.可以再github页面上有个upload files按钮,可以上传到本地
 
 
6,提交到远程
 
Pull request ->New pull requests->进入Comparing changes界面,