dnitsch / git-local-util

collection of utilities to run against local git repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Report Card Bugs Technical Debt Reliability Rating Vulnerabilities Coverage

git-local-util

Collection of local git operations for increased productivity šŸ¤·

Installation

Major platform binaries here

*nix binary

curl -L https://github.com/dnitsch/git-local-util/releases/latest/download/git-local-util-linux -o git-local-util

MacOS binary

curl -L https://github.com/dnitsch/git-local-util/releases/latest/download/git-local-util-darwin -o git-local-util
chmod +x git-local-util
sudo mv git-local-util /usr/local/bin

Windows

iwr -Uri "https://github.com/dnitsch/git-local-util/releases/latest/download/git-local-util-windows" -OutFile "git-local-util"

Download specific version:

curl -L https://github.com/dnitsch/git-local-util/releases/download/v0.1.0/git-local-util-`uname -s` -o git-local-util

Usage

git-local-util --help

git-local-util migrate --help

Migrate

Migrates remote "origin" from one Url to another - useful when a repo or a large collection of repos are being moved to another URL - either within the same provider or another git compliant provider.

Example

Simple migration

git-local-util migrate -d "./test" -f "find/old-origin-part" -r "replace/origin-part" --verbose

find

Find argument can be any continuos string i.e. singleword or url/part/1

replace

Replace argument can be any continuos string i.e. singleword or url/part/1

About

collection of utilities to run against local git repositories

License:MIT License


Languages

Language:Go 82.6%Language:Makefile 12.5%Language:Shell 4.9%