一.自定义合并命令

将add commit push合并

git config --global alias.cmp '!f() { git add -A && git commit -m "日志" && git push; }; f'

window下面就是在C:\Users\Administrator\.gitconfig文件中添加了上面的代码

然后执行命令 git cmp

二.配置相关

查看配置

git config --global --list

配置增删改

//查看配置
git config --global --list
git config --global user.name
//增加配置
git config  --global --add user.name 王召波
//删除配置
git config  --global --unset user.name
//修改配置
git config  --global user.name 王召波

 

相关文章:

  • 2021-09-19
  • 2022-02-19
  • 2022-12-23
  • 2021-12-21
  • 2021-11-10
  • 2022-12-23
猜你喜欢
  • 2021-10-10
  • 2021-05-07
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
相关资源
相似解决方案