第一步:安装Git
第二步:在自己的工程目录下右键鼠标 选择 git Bash Here
执行命令 git init 来创建一个本地代码仓库
执行命令 git add . 来把所有文件添加到仓库
执行命令 git commit -m "first commit." 来提交代码 其中“first commit.”是注释信息 可自定义
第三步:将本地仓库提交到远程仓库并关联
执行命令git remote add origin "远程仓库地址"
执行命令git push -u origin master
http://blog.chinaunix.net/uid-26990529-id-3396947.html