diff --git a/git.go b/git.go index bd657d8..b24bb5d 100644 --- a/git.go +++ b/git.go @@ -65,7 +65,7 @@ func (g *git) SetUpstreamOrigin(origin string) *define.Result { // Date : 20:24 2022/6/14 func (g *git) Add(fileList ...string) *define.Result { if len(fileList) == 0 { - fileList = []string{"*"} + fileList = []string{"."} } param := []string{"add"} for _, item := range fileList {