git以及github的使用(上传你的代码到github上)

git以及github的使用

1.远程
1.创建github账户,牢记你的用户名,邮箱,密码
2.创建远程仓库
这里写图片描述
这里写图片描述

1.安装
 windows下载地址:https://git-for-windows.github.io/
 linux下载:sudo apt-get install git
2.检测是否安装成功
git - -version
3.按照如下命令操作
这里写图片描述
4.第二次上传的时候直接执行

        git add *
        git commit -m "secondcommit"
        git push -u origin master

5.在提交的过程中可能会叫你配置全局用户名和邮箱

        config --global user.name "你的用户名"
        config --global user.email "你的邮箱"

猜你喜欢

转载自blog.csdn.net/webEvelement/article/details/81876756