Skip to content
/ sgit Public

A simple cli to clone projects and fetch all projects in a GitHub org..

License

Notifications You must be signed in to change notification settings

phodal/sgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stupid-git

crates.io license Sgit Build

A simple cli to clone projects and update all projects.

  • get all repository from GitHub
  • clone all
  • pull all
    • with git stash

Usage

  1. create sgit.yaml file
  2. run sgit clone or sgit pull

sample of sgit.yaml

repos:
  - https://github.com/phodal/sgit.git

auto gen repos for orgs

  1. config for orgs with sgit.yaml:
---
organization: xxx
token: xxx
repos: []

for private projects, you need to config token from: https://github.com/settings/tokens

  1. run sgit gen for fetch all repos info
sgit gen
  1. run sgit clone or sgit pull

others

sgit
A multiple repo's git cli

USAGE:
    sgit <SUBCOMMAND>

OPTIONS:
    -h, --help    Print help information

SUBCOMMANDS:
    add      add a repos !! not implement
    clone    Clones repos
    gen      generate sgit by org
    help     Print this message or the help of the given subcommand(s)
    init     init sgit config
    push     pushes things

License

@2022 This code is distributed under the MIT license. See LICENSE in this directory.

About

A simple cli to clone projects and fetch all projects in a GitHub org..

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages