Categorygithub.com/jaronnie/grum
modulepackage
1.2.1
Repository: https://github.com/jaronnie/grum.git
Documentation: pkg.go.dev

# README

grum

git remote url modify, for example: It will modify your_repository/.git/config remote.origin url value and user.name, user.email.

It is no longer necessary to configure cumbersome SSH Key, and the configuration can be completed with one click through the access token.

[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = https://github.com/jaronnie/grum.git

to

[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = https://[email protected]/jaronnie/grum.git

support ssh or http/https protocol.

install

go install github.com/jaronnie/grum@latest

usage

cd /path/to/your_repository
grum
# grum --type gitlab 使用公司内网的 gitlab
# grum --type gitlab --insecure # 使用 http
grum clone [email protected]:niejian/sc.git --type gitlab

Required environment variables, judged according to the type

typeenv name
githubGITHUB_TOKEN
gitlabGITLAB_TOKEN

# Packages

No description provided by the author
No description provided by the author