windows向github提交代码

随便写的,留给自己看。

一.在github上注册并建立自己的仓库
http://www.cnblogs.com/keZhenxu94/p/5288488.html

二.安装windows版本git界面工具

msysgit是Windows版的Git,从https://git-for-windows.github.io下载,然后按默认选项安装即可。

三.进入任一英文目录下,右键打开 Git Bush here

执行:

  $git clone 你的仓库地址

这样就把github上的仓库down到本地了(仓库地址在创建仓库的时候会有)

若此仓库是空的,新加入了文件的话,第一次提交需要

touch README
git add README 
git commit -m 'first commit'
git push origin master

然后输入你的用户名,密码即可提交。
原文地址:https://www.cnblogs.com/hxphp/p/6492760.html