grum

command module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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://your_github_token@github.com/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
# default github
grum clone git@git.hyperchain.cn:niejian/sc.git --type gitlab
# http insecure
grum clone http://git.hyperchain.cn/niejian/sc.git --type gitlab --insecure

Required environment variables, judged according to the type

type env name
github GITHUB_TOKEN
gitlab GITLAB_TOKEN

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL