Skip to content
/ grum Public

为不同远程仓库 git 配置提交代码配置,配置简单,跨平台特性

License

Notifications You must be signed in to change notification settings

jaronnie/grum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
# default github
grum clone [email protected]: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

About

为不同远程仓库 git 配置提交代码配置,配置简单,跨平台特性

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages