1.申请一个github账号;本地安装git;ssh-key 生成公钥和密钥,添加到github账号中。
2.创建一个文件夹mkdir folder,git init 将文件夹变成本地git仓库。在github上create a repository作为远程仓库。
3. git remote add origin https://github.com/Alien016/ml.git 将本地仓库和远程仓库连接起来。
4.git pull --rebase origin master将本地和远程仓库同步
5.git add;git commit -m;提交到本地仓库
6. git push origin master提交到远程仓库,刷新github上的项目会发现本地的文件都上传到github的仓库中了。