mirror of
https://github.com/daveberrys/guh.git
synced 2026-11-29 00:56:45 +08:00
implement undo, account store cred
This commit is contained in:
1 parent
bb6ffb1271
commit
aa4f72b87d
2 files changed
+28
No files matched your search
@@ -18,6 +18,7 @@ var switchAccountCmd = &cobra.Command{
|
||||
if err != nil { return err }
|
||||
|
||||
if err := utils.RunGitSequence(false,
|
||||
[]string{"config", "--global", "credential.helper", "store"},
|
||||
[]string{"config", "--global", "user.name", account.Username},
|
||||
[]string{"config", "--global", "user.email", account.Email},
|
||||
); err != nil { return err }
|
||||
|
||||
Reference in new issue
Block a user