git init  初始化一个git仓库

git add  文件名   将文件由工作区添加到缓冲区

git commit 文件名  将文件由缓冲区提交到版本控制区

git中设置用户名和邮箱

git基础命令

将用户和邮箱添加到系统,每个系统就一个,无论哪个用户登录都将使用这个用户和邮箱:

git config --system username "张三“

git config --system useremail "[email protected]"

将用户和邮箱添加到用户,每个用户都使用自己的账号和邮箱:

git config --global username "张三“

git config --global useremail "[email protected]"

将用户和邮箱添加到项目中,每次提交时都使用项目中的账户和邮箱

git config --local  username "张三“

git config --local  useremail "[email protected]"

 

git基础命令

 

diff

git基础命令

  

  

git基础命令

 

git基础命令

 

git基础命令

相关文章:

  • 2021-11-18
  • 2021-07-23
  • 2021-10-03
  • 2021-08-15
  • 2021-10-10
  • 2021-09-08
  • 2021-11-18
  • 2021-07-28
猜你喜欢
  • 2021-08-04
  • 2021-08-04
  • 2019-09-12
  • 2019-10-21
  • 2021-09-09
  • 2022-01-06
  • 2021-11-23
相关资源
相似解决方案