repos

command
v0.0.0-...-ff1ddd2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 20 Imported by: 0

README

repos

repos is a tool to manage local repos.

install

$ go install go.seankhliao.com/mono/cmd/repos@latest

Add the following in shell config:

function repos() {
    local out=$(command repos "$@")
    # source <(<<< "${out}")
    eval "${out}"
}

usage

creete a new temporary repo

If name isn't provided, the repo is created in ~/tmp/testrepoXXXX, where XXXX is an autoincrementing number. The repo comes with a readme, license (MIT), and go.mod.

$ repos new [name]
switch to the latest temporary repo
$ repos last
sync all repos with HEAD

Sync all repos in first level child directories to HEAD.

$ repos sync
sync non archived repos from a github user/org

Clone a copy of all non-archived github repos, and update existing repos to HEAD.

$ repos syncgh

Documentation

Overview

repos is a tool to manage local git repos.

Jump to

Keyboard shortcuts

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