需要去 git上面修改一下当前的账号、邮箱

git config --global  user.name "你的名字"
git config --global user.email "你的邮箱"
cat ~/.gitconfig

 

 

1. 查看当前登录账号:

git config user.name

2. 查看当前登录邮箱:

git config user.email

3. 修改用户名和邮箱:

git config --global user.name "Your_username"
git config --global user.email "Your_email"

 

 

4.提交代码
git add .--------------------存储到本地 
git commit -m 'message'-------存储时的标记(修改了哪些地方) 
git push------------------------上传代码至服务器 
6.更新代码
git pull------------------------下载服务器代码)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-12-09
  • 2021-11-20
  • 2021-07-09
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2021-11-22
  • 2021-07-11
  • 2021-11-06
相关资源
相似解决方案