
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