A Git utility CLI tool with some missing sub commands
npm i git-utility -gor run with npx / pnpx directly:
npx git-utility # your arguments here# Download entire repository to current directory
xgit download https://github.com/your-org/your-repo
# Download from specific branch
xgit download https://github.com/your-org/your-repo main
# Download specific folder or file
xgit download https://github.com/your-org/your-repo main path/to/your-folder/or-file
# Download to a specific local path
xgit download https://github.com/your-org/your-repo main path/to/your-folder/or-file ./local-destination# Upload a folder to a Git repository on a specific branch (force push)
xgit upload path/to/source-folder https://github.com/your-org/your-repo target-branch
# Upload to a specific directory in the repository (non-force push)
xgit upload path/to/source-folder https://github.com/your-org/your-repo target-branch target/directory# List current submodules
xgit submodule remove
# Remove a specific submodule
xgit submodule remove path/to/submodulexgit download <GitURL> [branchName] [folderOrFilePath] [targetFolder]- Download folders or files from a Git repositoryxgit upload <sourceFolder> <GitURL> <targetBranch> [targetFolder]- Upload a folder to a Git repositoryxgit submodule remove [path]- Remove a Git submodule
