Mysql项目 github_对github中项目进行更新

进入本地仓库文件夹,我的仓库名是tufujiegit,然后

21d96ca9fe127cec346f5ec2d3ac5249.png

进入

0eeb4e64a1f2ed98ca3234e134a2278f.png

5a6e3ac8a443d8cba64b89d232e42517.png

git clone 接着将先前记录下来的地址复制到后面,回车

将下载github中该仓库的所有文件及文件夹,包括.git文件夹在内,全部拷贝到你的本地仓库的根目录(我刚才直接在这个目录下载的,所以可以不用拷贝了)

d8c0d6d4d3a915fc2b8fd63a13612e3d.png

5bfa8dc17486aec2eb87d377ee0ca1b5.png

输入

git commit -m "changes log"

提交到本地的版本控制库里,引号里面是你对本次提交的说明信息。

a7d685eb2eac690e33fd21cfe21c8684.png

如果报错

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"

git config --global user.name "Your Name"

to set your account's default identity.

Omit --global to set the identity only in this repository.

git config --global user.email "你的邮箱"

git config --global user.name "你的名字"

// 如果远程地址中没有建立仓库,那么建立仓库

git remote add origin git@github.com:tufujie/tufujiegit.git

最后输入

git push -u origin master

如果版本库不为空,则直接git push即可

将你本地的仓库提交到你的github账号里,此时会要求你输入你的github的账号和密码。

989d6397b24260947e67782f2acd137c.png

650af7b61049211ee862ea12f7f0f078.png

结果显示

ca3aa93d935df7a54bb5fedf2d511c70.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值