change git user 切换git用户
$ go install github.com/huaweiouba/cgu@latest
$ cgu
cgu ls 查看当前目录git仓库所使用用户,及用户列表
cgu use 切换当前目录的git仓库用户
cgu add 添加git用户
cgu del 删除git用户
当前目录使用 name=sunhuawei [email protected] (作用于/Users/sunhuawei/coding/cgu)
+-------------+------------------------+
| 用户名 | 邮箱 |
+-------------+------------------------+
| * sunhuawei | [email protected] |
+-------------+------------------------+
Refuse complex, the rest is interactive processing. 拒绝复杂,剩下的就是交互式操作了
ps: Thanks for the first star of toby, yes, cgu uses bubbletea 's cool cli. 感谢 toby 大佬的第一个star,没错,cgu里面炫酷的cli使用 bubbletea