一、将本机的公钥设置在github上
1、生成git登陆ssh key
$ cd ~/.ssh
$ ssh-keygen -t rsa -C “email@email.com”
$ ls
$ cat id_rsa.pub

enter 之后将结果复制到github中 setting – SSH and GPG keys 中。
二、将git上的项目下载到本地。
在github上复制 https的url
webstorm – check out form … – git 复制进去 clone
三、新建文件上传至git
右键 – git – +Add -右键 -Commit file – commit – 右键 – Git – Repository – push – push
四、对比前后两次上传文件之差异