Skip to content

huaweiouba/cgu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cgu

change git user 切换git用户

Getting Started

Installing

$ go install github.com/huaweiouba/cgu@latest

Using

$ cgu

cgu ls  查看当前目录git仓库所使用用户,及用户列表
cgu use 切换当前目录的git仓库用户
cgu add 添加git用户
cgu del 删除git用户
当前目录使用 name=sunhuawei [email protected] (作用于/Users/sunhuawei/coding/cgu)
+-------------+------------------------+
|   用户名     |          邮箱           |
+-------------+------------------------+
| * sunhuawei | [email protected] |
+-------------+------------------------+

It's over

Refuse complex, the rest is interactive processing. 拒绝复杂,剩下的就是交互式操作了

anqpZhtxkcCyMQ8.gif

ps: Thanks for the first star of toby, yes, cgu uses bubbletea 's cool cli. 感谢 toby 大佬的第一个star,没错,cgu里面炫酷的cli使用 bubbletea

About

change-git-user 方便地切换git用户

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages