git-local-util

command module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 1 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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