如何使用git工具向github提交代码

1.首先输入邮箱以及github账户

git config --global user.email "github邮箱"
git config --global user.name "github名字"

2.将github上的项目拉到本地

git clone 地址
//将github上的东西克隆下来 ​

3.进入本地自己的项目

cd 项目

4.进行上传

//开始把本地的文件全部添加下
git st
git add ...//添加
git co ...//还原
//提交
git ci '这里是我写的提交注释'
//提交到远程
git pull origin master
git push origin master


你可能感兴趣的:(github)