参考 我大哥 廖雪峰的 Git教程
将github项目克隆到本地
$ git clone https://github.com/8bulbs/learn_git.git
添加文件file到仓库
$ git add fileName
添加所有文件到仓库
$ git add .
将文件提交到仓库
$ git commit -m "your msg"
将本地修改推送到github
$ git push
Successfully created project 'wechat_dev' on GitHub, but initial push failed: Could not read from remote repository.
解决:
Settring -> VersionControl ->GitHub中去掉:“Clone git repositories using ssh”