利用git向github上远程提交一个自己的开源项目

1.在电脑的系统变量中的path路径中配置git的环境变量:

        找到git安装路径中bin的位置,如:X:\Git\bin

        找到git安装路径中git-core的位置,如:X:\Git\libexec\git-core;

        然后将这两个路径配置到系统变量的path中即可

2.打开命令行(cmd+enter),将目录切换到项目目录:例如:D:\>cd D:\wps_github\LoopLinearViewItem,然后点击enter

3.然后输入如下命令并点击enter

D:\wps_github\LoopLinearViewItem>git remote add origin https://github.com/ywtony
/LoopLinearViewItem.git

4.输入如下命名:代码就开始远程上传到github了。

D:\wps_github\LoopLinearViewItem>git push -f

5.刷新github上的项目主页就能够看到你上传的代码了。嘎嘎

posted on 2014-10-24 16:18  飘杨......  阅读(333)  评论(0编辑  收藏  举报