9 Star 162 Fork 35

开源中国/git-repo-clean

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 481 Bytes
一键复制 编辑 原始数据 按行查看 历史
Li Linchao 提交于 2022-07-22 11:18 +08:00 . update
package main
import (
"os"
)
var op Options
func main() {
if err := ParseOptions(os.Args[1:]); err != nil {
PrintLocalWithRedln("Parse Option error")
os.Exit(1)
}
var repo = NewRepository()
// repo backup
BackUp(repo.context.gitBin, repo.context.workDir)
// ask for lfs migrate
if repo.context.opts.lfs {
if ok := AskForMigrateToLFS(); !ok {
repo.context.opts.lfs = false
}
}
// filter data
repo.Parser()
repo.context.CleanUp()
repo.context.Prompt()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/oschina/git-repo-clean.git
git@gitee.com:oschina/git-repo-clean.git
oschina
git-repo-clean
git-repo-clean
main

搜索帮助