github上发布工程代码

(1)首先注册一个github账号,之后新建一个仓库,会生成一个URL,类似于https://github.com/cnxhh/Float

(2)下载安装github上传工具,用于本地代码的上传操作

(3)打开git-bash.exe,输出命令:

    1. cd 进去代码文件夹

    2. git init 初始化生成.git文件夹, git pull --rebase origin master把github上的文件下载到本地

    3. git add . 添加目录下所有文件夹,也可以指定单个的文件 

    4. git commit -m "first commit"  添加注释

    5.  git remote add origin https://github.com/cnxhh/Float 指定上传路径

    6.  git push origin master 上传文件

猜你喜欢

转载自blog.csdn.net/u012601647/article/details/80811026