grum

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

grum

git reomote url modify, for example: It will modify your_repository/.git/config remote.origin url value.

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
grum clone git@git.hyperchain.cn:niejian/sc.git --type gitlab

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

Jump to

Keyboard shortcuts

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